From 58c3eff4411998b4986fd9cb00d0c70dfc914a12 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Tue, 15 Jun 2021 14:23:13 -0400 Subject: [PATCH 01/21] Resolve #9774 - Add in `oas3` option for Spring codegen to use newer annotations - Add `useSpringController` option for Spring codegen - Use `useSpringfox` to fix some unwanted imports for Spring codegen - Use `jdk8` to add OffsetDateTime import for models in Spring codegen - Add `JsonValue` to `enumOuterClass.mustache` to allow enums to be generated properly --- .../codegen/languages/SpringCodegen.java | 39 ++++++++++++++++++- .../main/resources/JavaSpring/api.mustache | 37 ++++++++++++++++-- .../resources/JavaSpring/bodyParams.mustache | 2 +- .../JavaSpring/enumOuterClass.mustache | 1 + .../JavaSpring/headerParams.mustache | 2 +- .../main/resources/JavaSpring/model.mustache | 10 +++++ .../resources/JavaSpring/pathParams.mustache | 2 +- .../main/resources/JavaSpring/pojo.mustache | 6 +-- .../resources/JavaSpring/queryParams.mustache | 2 +- 9 files changed, 89 insertions(+), 12 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index 058acbed956a..ab0f2bed3f7f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -68,6 +68,9 @@ public class SpringCodegen extends AbstractJavaCodegen public static final String IMPLICIT_HEADERS = "implicitHeaders"; public static final String OPENAPI_DOCKET_CONFIG = "swaggerDocketConfig"; public static final String API_FIRST = "apiFirst"; + public static final String OAS3 = "oas3"; + public static final String SPRING_CONTROLLER = "springController"; + public static final String USE_SPRING_FOX = "useSpringfox"; public static final String HATEOAS = "hateoas"; public static final String RETURN_SUCCESS_CODE = "returnSuccessCode"; public static final String UNHANDLED_EXCEPTION_HANDLING = "unhandledException"; @@ -98,6 +101,9 @@ public class SpringCodegen extends AbstractJavaCodegen protected boolean hateoas = false; protected boolean returnSuccessCode = false; protected boolean unhandledException = false; + protected boolean useSpringController = false; + protected boolean oas3 = false; + protected boolean useSpringfox = true; public SpringCodegen() { super(); @@ -170,6 +176,9 @@ public SpringCodegen() { cliOptions.add(CliOption.newBoolean(USE_OPTIONAL, "Use Optional container for optional parameters", useOptional)); cliOptions.add(CliOption.newBoolean(HATEOAS, "Use Spring HATEOAS library to allow adding HATEOAS links", hateoas)); cliOptions.add(CliOption.newBoolean(RETURN_SUCCESS_CODE, "Generated server returns 2xx code", returnSuccessCode)); + cliOptions.add(CliOption.newBoolean(OAS3, "Use OAS 3 Swagger annotations instead of OAS 2 annotations", oas3)); + cliOptions.add(CliOption.newBoolean(SPRING_CONTROLLER, "Annotate the generated API as a Spring Controller", useSpringController)); + cliOptions.add(CliOption.newBoolean(USE_SPRING_FOX, "Whether or not to use Springfox. Defaults to true", useSpringfox)); cliOptions.add(CliOption.newBoolean(UNHANDLED_EXCEPTION_HANDLING, "Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).", unhandledException)); supportedLibraries.put(SPRING_BOOT, "Spring-boot Server application using the SpringFox integration."); @@ -327,6 +336,18 @@ public void processOpts() { this.setHateoas(Boolean.parseBoolean(additionalProperties.get(HATEOAS).toString())); } + if (additionalProperties.containsKey(SPRING_CONTROLLER)) { + this.setUseSpringController(Boolean.parseBoolean(additionalProperties.get(SPRING_CONTROLLER).toString())); + } + + if (additionalProperties.containsKey(OAS3)) { + this.setOas3(Boolean.parseBoolean(additionalProperties.get(OAS3).toString())); + } + + if (additionalProperties.containsKey(USE_SPRING_FOX)) { + this.setUseSpringfox(Boolean.parseBoolean(additionalProperties.get(USE_SPRING_FOX).toString())); + } + if (additionalProperties.containsKey(RETURN_SUCCESS_CODE)) { this.setReturnSuccessCode(Boolean.parseBoolean(additionalProperties.get(RETURN_SUCCESS_CODE).toString())); } @@ -452,8 +473,10 @@ public void processOpts() { } - if (!this.apiFirst && !this.reactive) { - additionalProperties.put("useSpringfox", true); + if (this.useSpringfox) { + if (!this.apiFirst && !this.reactive) { + additionalProperties.put("useSpringfox", true); + } } @@ -804,6 +827,18 @@ public void setHateoas(boolean hateoas) { this.hateoas = hateoas; } + public void setUseSpringController(boolean useSpringController) { + this.useSpringController = useSpringController; + } + + public void setOas3(boolean oas3) { + this.oas3 = oas3; + } + + public void setUseSpringfox(boolean useSpringfox) { + this.useSpringfox = useSpringfox; + } + public void setReturnSuccessCode(boolean returnSuccessCode) { this.returnSuccessCode = returnSuccessCode; } diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache index 770bfd301831..6264df3d55ea 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache @@ -7,7 +7,19 @@ package {{package}}; {{#imports}}import {{import}}; {{/imports}} +{{#oas3}} +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.parameters.RequestBody; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.security.SecurityRequirement; +import io.swagger.v3.oas.annotations.tags.Tag; +{{/oas3}} +{{^oas3}} import io.swagger.annotations.*; +{{/oas3}} {{#jdk8-no-delegate}} {{#virtualService}} import io.virtualan.annotation.ApiVirtual; @@ -20,6 +32,9 @@ import org.springframework.http.ResponseEntity; {{#useBeanValidation}} import org.springframework.validation.annotation.Validated; {{/useBeanValidation}} +{{#useSpringController}} +import org.springframework.stereotype.Controller; +{{/useSpringController}} {{#vendorExtensions.x-spring-paginated}} import org.springframework.data.domain.Pageable; {{/vendorExtensions.x-spring-paginated}} @@ -36,7 +51,9 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.http.codec.multipart.Part; {{/reactive}} +{{#useSpringfox}} import springfox.documentation.annotations.ApiIgnore; +{{/useSpringfox}} {{#useBeanValidation}} import javax.validation.Valid; @@ -59,7 +76,11 @@ import java.util.concurrent.{{^jdk8}}Callable{{/jdk8}}{{#jdk8}}CompletableFuture {{#useBeanValidation}} @Validated {{/useBeanValidation}} -@Api(value = "{{{baseName}}}", description = "the {{{baseName}}} API") +{{#useSpringController}} +@Controller +{{/useSpringController}} +{{#oas3}}@Tag(name = "{{{baseName}}}", description = "the {{{baseName}}} API"){{/oas3}} +{{^oas3}}@Api(value = "{{{baseName}}}", description = "the {{{baseName}}} API"){{/oas3}} {{#operations}} {{#virtualService}} @VirtualService @@ -105,6 +126,10 @@ public interface {{classname}} { {{#virtualService}} @ApiVirtual {{/virtualService}} + {{#oas3}} + @Operation(summary = "{{{summary}}}", tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} }, responses = { {{#responses}} @ApiResponse(responseCode = "{{{code}}}", description = "{{{message}}}"{{#baseType}}, content = @Content(mediaType = "application/json", schema = @Schema(implementation = {{{baseType}}}.class)){{/baseType}}){{^-last}},{{/-last}}{{/responses}} }{{#hasAuthMethods}},security = { + {{#authMethods}}@SecurityRequirement(name = "{{name}}"{{#isOAuth}}, scopes={ {{#scopes}}"{{scope}}"{{^-last}}, {{/-last}}{{/scopes}} }{{/isOAuth}}){{^-last}},{{/-last}}{{/authMethods}} } {{/hasAuthMethods}}) + {{/oas3}}{{^oas3}} @ApiOperation(value = "{{{summary}}}", nickname = "{{{operationId}}}", notes = "{{{notes}}}"{{#returnBaseType}}, response = {{{returnBaseType}}}.class{{/returnBaseType}}{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}{{#hasAuthMethods}}, authorizations = { {{#authMethods}}{{#isOAuth}}@Authorization(value = "{{name}}", scopes = { {{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{^-last}}, @@ -113,8 +138,14 @@ public interface {{classname}} { {{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} }) @ApiResponses(value = { {{#responses}} @ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{#baseType}}, response = {{{baseType}}}.class{{/baseType}}{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}} }) + {{/oas3}} {{#implicitHeaders}} + {{#oas3}} + @Parameters( + {{/oas3}} + {{^oas3}} @ApiImplicitParams({ + {{/oas3}} {{#headerParams}} {{>implicitHeader}} {{/headerParams}} @@ -127,13 +158,13 @@ public interface {{classname}} { produces = { {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} }{{/hasProduces}}{{#hasConsumes}}, consumes = { {{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}} }{{/hasConsumes}}{{/singleContentTypes}} ) - {{#jdk8-default-interface}}default {{/jdk8-default-interface}}{{#responseWrapper}}{{.}}<{{/responseWrapper}}ResponseEntity<{{>returnTypes}}>{{#responseWrapper}}>{{/responseWrapper}} {{#delegate-method}}_{{/delegate-method}}{{operationId}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{>cookieParams}}{{^-last}},{{/-last}}{{#-last}}{{#reactive}}, {{/reactive}}{{/-last}}{{/allParams}}{{#reactive}}@ApiIgnore final ServerWebExchange exchange{{/reactive}}{{#vendorExtensions.x-spring-paginated}}, @ApiIgnore final Pageable pageable{{/vendorExtensions.x-spring-paginated}}){{^jdk8-default-interface}};{{/jdk8-default-interface}}{{#jdk8-default-interface}}{{#unhandledException}} throws Exception{{/unhandledException}} { + {{#jdk8-default-interface}}default {{/jdk8-default-interface}}{{#responseWrapper}}{{.}}<{{/responseWrapper}}ResponseEntity<{{>returnTypes}}>{{#responseWrapper}}>{{/responseWrapper}} {{#delegate-method}}_{{/delegate-method}}{{operationId}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{>cookieParams}}{{^-last}},{{/-last}}{{#-last}}{{#reactive}}, {{/reactive}}{{/-last}}{{/allParams}}{{#reactive}}{{#oas3}}@Hidden{{/oas3}}{{^oas3}}@ApiIgnore{{/oas3}} final ServerWebExchange exchange{{/reactive}}{{#vendorExtensions.x-spring-paginated}}, {{#oas3}}@Hidden{{/oas3}}{{^oas3}}@ApiIgnore{{/oas3}} final Pageable pageable{{/vendorExtensions.x-spring-paginated}}){{^jdk8-default-interface}};{{/jdk8-default-interface}}{{#jdk8-default-interface}}{{#unhandledException}} throws Exception{{/unhandledException}} { {{#delegate-method}} return {{operationId}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#reactive}}{{#hasParams}}, {{/hasParams}}exchange{{/reactive}}{{#vendorExtensions.x-spring-paginated}}, pageable{{/vendorExtensions.x-spring-paginated}}); } // Override this method - {{#jdk8-default-interface}}default {{/jdk8-default-interface}} {{#responseWrapper}}{{.}}<{{/responseWrapper}}ResponseEntity<{{>returnTypes}}>{{#responseWrapper}}>{{/responseWrapper}} {{operationId}}({{#allParams}}{{^isFile}}{{^isBodyParam}}{{>optionalDataType}}{{/isBodyParam}}{{#isBodyParam}}{{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}}{{/isBodyParam}}{{/isFile}}{{#isFile}}{{#reactive}}Flux{{/reactive}}{{^reactive}}MultipartFile{{/reactive}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#reactive}}{{#hasParams}}, {{/hasParams}}@ApiIgnore final ServerWebExchange exchange{{/reactive}}{{#vendorExtensions.x-spring-paginated}}, @ApiIgnore final Pageable pageable{{/vendorExtensions.x-spring-paginated}}){{#unhandledException}} throws Exception{{/unhandledException}} { + {{#jdk8-default-interface}}default {{/jdk8-default-interface}} {{#responseWrapper}}{{.}}<{{/responseWrapper}}ResponseEntity<{{>returnTypes}}>{{#responseWrapper}}>{{/responseWrapper}} {{operationId}}({{#allParams}}{{^isFile}}{{^isBodyParam}}{{>optionalDataType}}{{/isBodyParam}}{{#isBodyParam}}{{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}}{{/isBodyParam}}{{/isFile}}{{#isFile}}{{#reactive}}Flux{{/reactive}}{{^reactive}}MultipartFile{{/reactive}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#reactive}}{{#hasParams}}, {{/hasParams}}{{#oas3}}@Hidden{{/oas3}}{{^oas3}}@ApiIgnore{{/oas3}} final ServerWebExchange exchange{{/reactive}}{{#vendorExtensions.x-spring-paginated}}, {{#oas3}}@Hidden{{/oas3}}{{^oas3}}@ApiIgnore{{/oas3}} final Pageable pageable{{/vendorExtensions.x-spring-paginated}}){{#unhandledException}} throws Exception{{/unhandledException}} { {{/delegate-method}} {{^isDelegate}} {{>methodBody}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache index 83780c73ae31..d7a4f81a61a0 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache @@ -1 +1 @@ -{{#isBodyParam}}@ApiParam(value = "{{{description}}}" {{#required}},required=true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues="{{{allowableValues}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file +{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues="{{{allowableValues}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/enumOuterClass.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/enumOuterClass.mustache index 334bfb6640b7..0183f7f6e58a 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/enumOuterClass.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/enumOuterClass.mustache @@ -1,5 +1,6 @@ {{#jackson}} import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; {{/jackson}} /** diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache index 2e2d907f583b..046abd68d7f0 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache @@ -1 +1 @@ -{{#isHeaderParam}}@ApiParam(value = "{{{description}}}" {{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues="{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value="{{baseName}}", required={{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} \ No newline at end of file +{{#isHeaderParam}}{{#oas3}}@Parameter(description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues="{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value="{{baseName}}", required={{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/model.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/model.mustache index 78c3c9ae19d4..05eb15e10545 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/model.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/model.mustache @@ -1,5 +1,6 @@ package {{package}}; +import java.net.URI; import java.util.Objects; {{#imports}}import {{import}}; {{/imports}} @@ -9,6 +10,9 @@ import org.openapitools.jackson.nullable.JsonNullable; {{#serializableModel}} import java.io.Serializable; {{/serializableModel}} +{{#jdk8}} +import java.time.OffsetDateTime; +{{/jdk8}} {{#useBeanValidation}} import javax.validation.Valid; import javax.validation.constraints.*; @@ -22,6 +26,10 @@ import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; {{/withXml}} {{/jackson}} +{{#oas3}} +import io.swagger.v3.oas.annotations.media.Schema; +{{/oas3}} + {{#withXml}} import javax.xml.bind.annotation.*; {{/withXml}} @@ -31,6 +39,8 @@ import org.springframework.hateoas.RepresentationModel; {{/hateoas}} {{/parent}} +import java.util.*; + {{#models}} {{#model}} {{#isEnum}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache index 44cc98fff1cd..4bdd1982f97b 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache @@ -1 +1 @@ -{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}@ApiParam(value = "{{{description}}}"{{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaEscapeDoubleQuote}}{{{value}}}{{/lambdaEscapeDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} \ No newline at end of file +{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{baseName}}", description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaEscapeDoubleQuote}}{{{value}}}{{/lambdaEscapeDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache index 3938d4d289e6..8fd131142698 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache @@ -1,7 +1,7 @@ /** * {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}} - */{{#description}} -@ApiModel(description = "{{{description}}}"){{/description}} + */ +{{#description}}{{#oas3}}@Schema({{#name}}name = "{{name}}",{{/name}}{{/oas3}}{{^oas3}}@ApiModel({{/oas3}}description = "{{{description}}}"){{/description}} {{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}}{{>additionalModelTypeAnnotations}} public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{^parent}}{{#hateoas}}extends RepresentationModel<{{classname}}> {{/hateoas}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} { {{#serializableModel}} @@ -112,7 +112,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{^parent}} {{#vendorExtensions.x-extra-annotation}} {{{vendorExtensions.x-extra-annotation}}} {{/vendorExtensions.x-extra-annotation}} - @ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}") + {{#oas3}}@Schema({{#name}}name = "{{{name}}}", {{/name}}{{/oas3}}{{^oas3}}@ApiModelProperty({{/oas3}}{{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}") {{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{>nullableDataType}} {{getter}}() { return {{name}}; } diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache index fc630e6361ee..ee362fcc542b 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache @@ -1 +1 @@ -{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}@ApiParam(value = "{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} \ No newline at end of file +{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} From e7919ceb9da68deb6d300a5d5a968f8580ca3e5e Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Tue, 15 Jun 2021 14:44:51 -0400 Subject: [PATCH 02/21] Update spring examples --- docs/generators/spring.md | 3 + .../main/resources/JavaSpring/api.mustache | 5 +- .../java/org/openapitools/api/PetApi.java | 77 +++++- .../java/org/openapitools/api/StoreApi.java | 23 +- .../java/org/openapitools/api/UserApi.java | 59 ++++- .../java/org/openapitools/model/Category.java | 8 + .../openapitools/model/ModelApiResponse.java | 8 + .../java/org/openapitools/model/Order.java | 8 + .../main/java/org/openapitools/model/Pet.java | 8 + .../main/java/org/openapitools/model/Tag.java | 8 + .../java/org/openapitools/model/User.java | 8 + .../java/org/openapitools/api/PetApi.java | 77 +++++- .../java/org/openapitools/api/StoreApi.java | 23 +- .../java/org/openapitools/api/UserApi.java | 59 ++++- .../java/org/openapitools/model/Category.java | 8 + .../openapitools/model/ModelApiResponse.java | 8 + .../java/org/openapitools/model/Order.java | 8 + .../main/java/org/openapitools/model/Pet.java | 8 + .../main/java/org/openapitools/model/Tag.java | 8 + .../java/org/openapitools/model/User.java | 8 + .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../java/org/openapitools/model/Category.java | 5 + .../openapitools/model/ModelApiResponse.java | 5 + .../java/org/openapitools/model/Order.java | 5 + .../main/java/org/openapitools/model/Pet.java | 5 + .../main/java/org/openapitools/model/Tag.java | 5 + .../java/org/openapitools/model/User.java | 5 + .../java/org/openapitools/api/PetApi.java | 77 +++++- .../java/org/openapitools/api/StoreApi.java | 23 +- .../java/org/openapitools/api/UserApi.java | 59 ++++- .../java/org/openapitools/model/Category.java | 8 + .../openapitools/model/ModelApiResponse.java | 8 + .../java/org/openapitools/model/Order.java | 8 + .../main/java/org/openapitools/model/Pet.java | 8 + .../main/java/org/openapitools/model/Tag.java | 8 + .../java/org/openapitools/model/User.java | 8 + .../java/org/openapitools/api/PetApi.java | 77 +++++- .../java/org/openapitools/api/StoreApi.java | 23 +- .../java/org/openapitools/api/UserApi.java | 59 ++++- .../java/org/openapitools/model/Category.java | 8 + .../openapitools/model/ModelApiResponse.java | 8 + .../java/org/openapitools/model/Order.java | 8 + .../main/java/org/openapitools/model/Pet.java | 8 + .../main/java/org/openapitools/model/Tag.java | 8 + .../java/org/openapitools/model/User.java | 8 + .../org/openapitools/api/TestHeadersApi.java | 27 +- .../openapitools/api/TestQueryParamsApi.java | 27 +- .../org/openapitools/model/TestResponse.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../openapitools/api/FakeApiController.java | 222 ++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../openapitools/api/PetApiController.java | 68 ++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../openapitools/api/UserApiController.java | 50 +++- .../model/AdditionalPropertiesAnyType.java | 5 + .../model/AdditionalPropertiesArray.java | 5 + .../model/AdditionalPropertiesBoolean.java | 5 + .../model/AdditionalPropertiesClass.java | 5 + .../model/AdditionalPropertiesInteger.java | 5 + .../model/AdditionalPropertiesNumber.java | 5 + .../model/AdditionalPropertiesObject.java | 5 + .../model/AdditionalPropertiesString.java | 5 + .../java/org/openapitools/model/Animal.java | 5 + .../model/ArrayOfArrayOfNumberOnly.java | 5 + .../openapitools/model/ArrayOfNumberOnly.java | 5 + .../org/openapitools/model/ArrayTest.java | 5 + .../java/org/openapitools/model/BigCat.java | 5 + .../org/openapitools/model/BigCatAllOf.java | 5 + .../openapitools/model/Capitalization.java | 5 + .../main/java/org/openapitools/model/Cat.java | 5 + .../java/org/openapitools/model/CatAllOf.java | 5 + .../java/org/openapitools/model/Category.java | 5 + .../org/openapitools/model/ClassModel.java | 4 + .../java/org/openapitools/model/Client.java | 5 + .../main/java/org/openapitools/model/Dog.java | 5 + .../java/org/openapitools/model/DogAllOf.java | 5 + .../org/openapitools/model/EnumArrays.java | 5 + .../org/openapitools/model/EnumClass.java | 5 + .../java/org/openapitools/model/EnumTest.java | 5 + .../model/FileSchemaTestClass.java | 5 + .../org/openapitools/model/FormatTest.java | 5 + .../openapitools/model/HasOnlyReadOnly.java | 5 + .../java/org/openapitools/model/MapTest.java | 5 + ...ropertiesAndAdditionalPropertiesClass.java | 5 + .../openapitools/model/Model200Response.java | 4 + .../openapitools/model/ModelApiResponse.java | 5 + .../org/openapitools/model/ModelReturn.java | 4 + .../java/org/openapitools/model/Name.java | 4 + .../org/openapitools/model/NumberOnly.java | 5 + .../java/org/openapitools/model/Order.java | 5 + .../openapitools/model/OuterComposite.java | 5 + .../org/openapitools/model/OuterEnum.java | 5 + .../main/java/org/openapitools/model/Pet.java | 5 + .../org/openapitools/model/ReadOnlyFirst.java | 5 + .../openapitools/model/SpecialModelName.java | 5 + .../main/java/org/openapitools/model/Tag.java | 5 + .../openapitools/model/TypeHolderDefault.java | 5 + .../openapitools/model/TypeHolderExample.java | 5 + .../java/org/openapitools/model/User.java | 5 + .../java/org/openapitools/model/XmlItem.java | 5 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 221 ++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 72 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 8 +- .../java/org/openapitools/api/FakeApi.java | 238 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 8 +- .../java/org/openapitools/api/PetApi.java | 77 +++++- .../java/org/openapitools/api/StoreApi.java | 23 +- .../java/org/openapitools/api/UserApi.java | 59 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../openapitools/api/FakeApiController.java | 222 ++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../openapitools/api/PetApiController.java | 68 ++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../openapitools/api/UserApiController.java | 50 +++- .../model/AdditionalPropertiesAnyType.java | 5 + .../model/AdditionalPropertiesArray.java | 5 + .../model/AdditionalPropertiesBoolean.java | 5 + .../model/AdditionalPropertiesClass.java | 5 + .../model/AdditionalPropertiesInteger.java | 5 + .../model/AdditionalPropertiesNumber.java | 5 + .../model/AdditionalPropertiesObject.java | 5 + .../model/AdditionalPropertiesString.java | 5 + .../java/org/openapitools/model/Animal.java | 5 + .../model/ArrayOfArrayOfNumberOnly.java | 5 + .../openapitools/model/ArrayOfNumberOnly.java | 5 + .../org/openapitools/model/ArrayTest.java | 5 + .../openapitools/model/Capitalization.java | 5 + .../main/java/org/openapitools/model/Cat.java | 5 + .../java/org/openapitools/model/CatAllOf.java | 5 + .../java/org/openapitools/model/Category.java | 5 + .../org/openapitools/model/ClassModel.java | 4 + .../java/org/openapitools/model/Client.java | 5 + .../main/java/org/openapitools/model/Dog.java | 5 + .../java/org/openapitools/model/DogAllOf.java | 5 + .../org/openapitools/model/EnumArrays.java | 5 + .../org/openapitools/model/EnumClass.java | 5 + .../java/org/openapitools/model/EnumTest.java | 5 + .../model/FileSchemaTestClass.java | 5 + .../org/openapitools/model/FormatTest.java | 5 + .../openapitools/model/HasOnlyReadOnly.java | 5 + .../java/org/openapitools/model/MapTest.java | 5 + ...ropertiesAndAdditionalPropertiesClass.java | 5 + .../openapitools/model/Model200Response.java | 4 + .../openapitools/model/ModelApiResponse.java | 5 + .../org/openapitools/model/ModelReturn.java | 4 + .../java/org/openapitools/model/Name.java | 4 + .../org/openapitools/model/NumberOnly.java | 5 + .../java/org/openapitools/model/Order.java | 5 + .../openapitools/model/OuterComposite.java | 5 + .../org/openapitools/model/OuterEnum.java | 5 + .../main/java/org/openapitools/model/Pet.java | 5 + .../org/openapitools/model/ReadOnlyFirst.java | 5 + .../openapitools/model/SpecialModelName.java | 5 + .../main/java/org/openapitools/model/Tag.java | 5 + .../openapitools/model/TypeHolderDefault.java | 5 + .../openapitools/model/TypeHolderExample.java | 5 + .../java/org/openapitools/model/User.java | 5 + .../java/org/openapitools/model/XmlItem.java | 5 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../openapitools/api/FakeApiController.java | 222 ++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../openapitools/api/PetApiController.java | 68 ++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../openapitools/api/UserApiController.java | 50 +++- .../model/AdditionalPropertiesAnyType.java | 5 + .../model/AdditionalPropertiesArray.java | 5 + .../model/AdditionalPropertiesBoolean.java | 5 + .../model/AdditionalPropertiesClass.java | 5 + .../model/AdditionalPropertiesInteger.java | 5 + .../model/AdditionalPropertiesNumber.java | 5 + .../model/AdditionalPropertiesObject.java | 5 + .../model/AdditionalPropertiesString.java | 5 + .../java/org/openapitools/model/Animal.java | 5 + .../model/ArrayOfArrayOfNumberOnly.java | 5 + .../openapitools/model/ArrayOfNumberOnly.java | 5 + .../org/openapitools/model/ArrayTest.java | 5 + .../openapitools/model/Capitalization.java | 5 + .../main/java/org/openapitools/model/Cat.java | 5 + .../java/org/openapitools/model/CatAllOf.java | 5 + .../java/org/openapitools/model/Category.java | 5 + .../org/openapitools/model/ClassModel.java | 4 + .../java/org/openapitools/model/Client.java | 5 + .../main/java/org/openapitools/model/Dog.java | 5 + .../java/org/openapitools/model/DogAllOf.java | 5 + .../org/openapitools/model/EnumArrays.java | 5 + .../org/openapitools/model/EnumClass.java | 5 + .../java/org/openapitools/model/EnumTest.java | 5 + .../model/FileSchemaTestClass.java | 5 + .../org/openapitools/model/FormatTest.java | 5 + .../openapitools/model/HasOnlyReadOnly.java | 5 + .../java/org/openapitools/model/MapTest.java | 5 + ...ropertiesAndAdditionalPropertiesClass.java | 5 + .../openapitools/model/Model200Response.java | 4 + .../openapitools/model/ModelApiResponse.java | 5 + .../org/openapitools/model/ModelReturn.java | 4 + .../java/org/openapitools/model/Name.java | 4 + .../org/openapitools/model/NumberOnly.java | 5 + .../java/org/openapitools/model/Order.java | 5 + .../openapitools/model/OuterComposite.java | 5 + .../org/openapitools/model/OuterEnum.java | 5 + .../main/java/org/openapitools/model/Pet.java | 5 + .../org/openapitools/model/ReadOnlyFirst.java | 5 + .../openapitools/model/SpecialModelName.java | 5 + .../main/java/org/openapitools/model/Tag.java | 5 + .../openapitools/model/TypeHolderDefault.java | 5 + .../openapitools/model/TypeHolderExample.java | 5 + .../java/org/openapitools/model/User.java | 5 + .../java/org/openapitools/model/XmlItem.java | 5 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + .../virtualan/api/AnotherFakeApi.java | 7 +- .../openapitools/virtualan/api/FakeApi.java | 237 +++++++++++++++-- .../virtualan/api/FakeClassnameTestApi.java | 7 +- .../openapitools/virtualan/api/PetApi.java | 76 +++++- .../openapitools/virtualan/api/StoreApi.java | 22 +- .../openapitools/virtualan/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../openapitools/virtualan/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../virtualan/model/ArrayOfNumberOnly.java | 6 + .../virtualan/model/ArrayTest.java | 6 + .../openapitools/virtualan/model/BigCat.java | 6 + .../virtualan/model/BigCatAllOf.java | 6 + .../virtualan/model/Capitalization.java | 6 + .../org/openapitools/virtualan/model/Cat.java | 6 + .../virtualan/model/CatAllOf.java | 6 + .../virtualan/model/Category.java | 6 + .../virtualan/model/ClassModel.java | 5 + .../openapitools/virtualan/model/Client.java | 6 + .../org/openapitools/virtualan/model/Dog.java | 6 + .../virtualan/model/DogAllOf.java | 6 + .../virtualan/model/EnumArrays.java | 6 + .../virtualan/model/EnumClass.java | 6 + .../virtualan/model/EnumTest.java | 6 + .../virtualan/model/FileSchemaTestClass.java | 6 + .../virtualan/model/FormatTest.java | 6 + .../virtualan/model/HasOnlyReadOnly.java | 6 + .../openapitools/virtualan/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../virtualan/model/Model200Response.java | 5 + .../virtualan/model/ModelApiResponse.java | 6 + .../virtualan/model/ModelReturn.java | 5 + .../openapitools/virtualan/model/Name.java | 5 + .../virtualan/model/NumberOnly.java | 6 + .../openapitools/virtualan/model/Order.java | 6 + .../virtualan/model/OuterComposite.java | 6 + .../virtualan/model/OuterEnum.java | 6 + .../org/openapitools/virtualan/model/Pet.java | 6 + .../virtualan/model/ReadOnlyFirst.java | 6 + .../virtualan/model/SpecialModelName.java | 6 + .../org/openapitools/virtualan/model/Tag.java | 6 + .../virtualan/model/TypeHolderDefault.java | 6 + .../virtualan/model/TypeHolderExample.java | 6 + .../openapitools/virtualan/model/User.java | 6 + .../openapitools/virtualan/model/XmlItem.java | 6 + .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 237 +++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 76 +++++- .../java/org/openapitools/api/StoreApi.java | 22 +- .../java/org/openapitools/api/UserApi.java | 58 ++++- .../model/AdditionalPropertiesAnyType.java | 6 + .../model/AdditionalPropertiesArray.java | 6 + .../model/AdditionalPropertiesBoolean.java | 6 + .../model/AdditionalPropertiesClass.java | 6 + .../model/AdditionalPropertiesInteger.java | 6 + .../model/AdditionalPropertiesNumber.java | 6 + .../model/AdditionalPropertiesObject.java | 6 + .../model/AdditionalPropertiesString.java | 6 + .../java/org/openapitools/model/Animal.java | 6 + .../model/ArrayOfArrayOfNumberOnly.java | 6 + .../openapitools/model/ArrayOfNumberOnly.java | 6 + .../org/openapitools/model/ArrayTest.java | 6 + .../java/org/openapitools/model/BigCat.java | 6 + .../org/openapitools/model/BigCatAllOf.java | 6 + .../openapitools/model/Capitalization.java | 6 + .../main/java/org/openapitools/model/Cat.java | 6 + .../java/org/openapitools/model/CatAllOf.java | 6 + .../java/org/openapitools/model/Category.java | 6 + .../org/openapitools/model/ClassModel.java | 5 + .../java/org/openapitools/model/Client.java | 6 + .../main/java/org/openapitools/model/Dog.java | 6 + .../java/org/openapitools/model/DogAllOf.java | 6 + .../org/openapitools/model/EnumArrays.java | 6 + .../org/openapitools/model/EnumClass.java | 6 + .../java/org/openapitools/model/EnumTest.java | 6 + .../model/FileSchemaTestClass.java | 6 + .../org/openapitools/model/FormatTest.java | 6 + .../openapitools/model/HasOnlyReadOnly.java | 6 + .../java/org/openapitools/model/MapTest.java | 6 + ...ropertiesAndAdditionalPropertiesClass.java | 6 + .../openapitools/model/Model200Response.java | 5 + .../openapitools/model/ModelApiResponse.java | 6 + .../org/openapitools/model/ModelReturn.java | 5 + .../java/org/openapitools/model/Name.java | 5 + .../org/openapitools/model/NumberOnly.java | 6 + .../java/org/openapitools/model/Order.java | 6 + .../openapitools/model/OuterComposite.java | 6 + .../org/openapitools/model/OuterEnum.java | 6 + .../main/java/org/openapitools/model/Pet.java | 6 + .../org/openapitools/model/ReadOnlyFirst.java | 6 + .../openapitools/model/SpecialModelName.java | 6 + .../main/java/org/openapitools/model/Tag.java | 6 + .../openapitools/model/TypeHolderDefault.java | 6 + .../openapitools/model/TypeHolderExample.java | 6 + .../java/org/openapitools/model/User.java | 6 + .../java/org/openapitools/model/XmlItem.java | 6 + 994 files changed, 13370 insertions(+), 836 deletions(-) diff --git a/docs/generators/spring.md b/docs/generators/spring.md index 43614a0a5aa0..94790463fac7 100644 --- a/docs/generators/spring.md +++ b/docs/generators/spring.md @@ -45,6 +45,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |licenseName|The name of the license| |Unlicense| |licenseUrl|The URL of the license| |http://unlicense.org| |modelPackage|package for generated models| |org.openapitools.model| +|oas3|Use OAS 3 Swagger annotations instead of OAS 2 annotations| |false| |openApiNullable|Enable OpenAPI Jackson Nullable library| |true| |parentArtifactId|parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null| |parentGroupId|parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null| @@ -64,11 +65,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| |sourceFolder|source folder for generated code| |src/main/java| +|springController|Annotate the generated API as a Spring Controller| |false| |swaggerDocketConfig|Generate Spring OpenAPI Docket configuration class.| |false| |title|server title name or client service name| |OpenAPI Spring| |unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).| |false| |useBeanValidation|Use BeanValidation API annotations| |true| |useOptional|Use Optional container for optional parameters| |false| +|useSpringfox|Whether or not to use Springfox. Defaults to true| |true| |useTags|use tags for creating interface and controller classnames| |false| |virtualService|Generates the virtual service. For more details refer - https://github.com/virtualansoftware/virtualan/wiki| |false| |withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false| diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache index 6264df3d55ea..cf64b93538b4 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache @@ -79,8 +79,7 @@ import java.util.concurrent.{{^jdk8}}Callable{{/jdk8}}{{#jdk8}}CompletableFuture {{#useSpringController}} @Controller {{/useSpringController}} -{{#oas3}}@Tag(name = "{{{baseName}}}", description = "the {{{baseName}}} API"){{/oas3}} -{{^oas3}}@Api(value = "{{{baseName}}}", description = "the {{{baseName}}} API"){{/oas3}} +{{#oas3}}@Tag(name = "{{{baseName}}}", description = "the {{{baseName}}} API"){{/oas3}}{{^oas3}}@Api(value = "{{{baseName}}}", description = "the {{{baseName}}} API"){{/oas3}} {{#operations}} {{#virtualService}} @VirtualService @@ -141,7 +140,7 @@ public interface {{classname}} { {{/oas3}} {{#implicitHeaders}} {{#oas3}} - @Parameters( + @Parameters({ {{/oas3}} {{^oas3}} @ApiImplicitParams({ diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java index 6dc5d09f0c8a..b981bb697100 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java @@ -25,6 +25,7 @@ import java.util.concurrent.CompletableFuture; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "Pet", description = "the Pet API") public interface PetApi { @@ -34,6 +35,7 @@ public interface PetApi { * @param body Pet object that needs to be added to the store (required) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -45,7 +47,11 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + CompletableFuture> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -55,6 +61,7 @@ public interface PetApi { * @param apiKey (optional) * @return Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -65,7 +72,15 @@ public interface PetApi { @DeleteMapping( value = "/pet/{petId}" ) - CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + CompletableFuture> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -76,6 +91,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -88,7 +104,11 @@ public interface PetApi { value = "/pet/findByStatus", produces = "application/json" ) - CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +); /** @@ -100,6 +120,7 @@ public interface PetApi { * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -112,7 +133,11 @@ public interface PetApi { value = "/pet/findByTags", produces = "application/json" ) - CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); + CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +); /** @@ -124,6 +149,7 @@ public interface PetApi { * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -136,7 +162,11 @@ public interface PetApi { value = "/pet/{petId}", produces = "application/json" ) - CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + CompletableFuture> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -147,6 +177,7 @@ public interface PetApi { * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -160,7 +191,11 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + CompletableFuture> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -171,6 +206,7 @@ public interface PetApi { * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -182,7 +218,19 @@ public interface PetApi { value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + CompletableFuture> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + + + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -193,6 +241,7 @@ public interface PetApi { * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -205,6 +254,18 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + CompletableFuture> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java index 0c181e59ee37..86465bc03c09 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java @@ -25,6 +25,7 @@ import java.util.concurrent.CompletableFuture; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "Store", description = "the Store API") public interface StoreApi { @@ -36,6 +37,7 @@ public interface StoreApi { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -43,7 +45,11 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{orderId}" ) - CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); + CompletableFuture> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +); /** @@ -52,6 +58,7 @@ public interface StoreApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -74,6 +81,7 @@ public interface StoreApi { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -83,7 +91,11 @@ public interface StoreApi { value = "/store/order/{orderId}", produces = "application/json" ) - CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); + CompletableFuture> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +); /** @@ -93,6 +105,7 @@ public interface StoreApi { * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -101,6 +114,10 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + CompletableFuture> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java index f62f460d1213..d060d0acb955 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java @@ -25,6 +25,7 @@ import java.util.concurrent.CompletableFuture; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "User", description = "the User API") public interface UserApi { @@ -35,13 +36,18 @@ public interface UserApi { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + CompletableFuture> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -50,13 +56,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + CompletableFuture> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -65,13 +76,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + CompletableFuture> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -82,6 +98,7 @@ public interface UserApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -89,7 +106,11 @@ public interface UserApi { @DeleteMapping( value = "/user/{username}" ) - CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + CompletableFuture> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -100,6 +121,7 @@ public interface UserApi { * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -109,7 +131,11 @@ public interface UserApi { value = "/user/{username}", produces = "application/json" ) - CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + CompletableFuture> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -120,6 +146,7 @@ public interface UserApi { * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -128,7 +155,15 @@ public interface UserApi { value = "/user/login", produces = "application/json" ) - CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -136,6 +171,7 @@ public interface UserApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -154,6 +190,7 @@ public interface UserApi { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -161,6 +198,14 @@ public interface UserApi { @PutMapping( value = "/user/{username}" ) - CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + CompletableFuture> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java index 1114316e27f5..5df696a20f9f 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A category for a pet diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java index 523a64f1874d..55b0d41ef494 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * Describes the result of uploading an image resource diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java index 12230edbc050..268c00be5971 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,8 +9,15 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * An order for a pets from the pet store diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java index 1e1b76c7d117..09fdde2a852f 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,8 +12,15 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java index 1476aa7d343a..babd5c55f4b4 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A tag for a pet diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java index 8bfae36516d1..c3520381a17b 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A User who is purchasing from the pet store diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java index f77fdf21de24..b4b6ccb54e15 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -24,6 +24,7 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "Pet", description = "the Pet API") public interface PetApi { @@ -33,6 +34,7 @@ public interface PetApi { * @param body Pet object that needs to be added to the store (required) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -44,7 +46,11 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -54,6 +60,7 @@ public interface PetApi { * @param apiKey (optional) * @return Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -64,7 +71,15 @@ public interface PetApi { @DeleteMapping( value = "/pet/{petId}" ) - com.netflix.hystrix.HystrixCommand> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + com.netflix.hystrix.HystrixCommand> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -75,6 +90,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -87,7 +103,11 @@ public interface PetApi { value = "/pet/findByStatus", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +); /** @@ -99,6 +119,7 @@ public interface PetApi { * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -111,7 +132,11 @@ public interface PetApi { value = "/pet/findByTags", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); + com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +); /** @@ -123,6 +148,7 @@ public interface PetApi { * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -135,7 +161,11 @@ public interface PetApi { value = "/pet/{petId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + com.netflix.hystrix.HystrixCommand> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -146,6 +176,7 @@ public interface PetApi { * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -159,7 +190,11 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -170,6 +205,7 @@ public interface PetApi { * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -181,7 +217,19 @@ public interface PetApi { value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - com.netflix.hystrix.HystrixCommand> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + com.netflix.hystrix.HystrixCommand> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + + + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -192,6 +240,7 @@ public interface PetApi { * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -204,6 +253,18 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - com.netflix.hystrix.HystrixCommand> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + com.netflix.hystrix.HystrixCommand> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 241a82690b1e..2ef2878d54d5 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -24,6 +24,7 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "Store", description = "the Store API") public interface StoreApi { @@ -35,6 +36,7 @@ public interface StoreApi { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -42,7 +44,11 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{orderId}" ) - com.netflix.hystrix.HystrixCommand> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); + com.netflix.hystrix.HystrixCommand> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +); /** @@ -51,6 +57,7 @@ public interface StoreApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -73,6 +80,7 @@ public interface StoreApi { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -82,7 +90,11 @@ public interface StoreApi { value = "/store/order/{orderId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); + com.netflix.hystrix.HystrixCommand> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +); /** @@ -92,6 +104,7 @@ public interface StoreApi { * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -100,6 +113,10 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + com.netflix.hystrix.HystrixCommand> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java index ad21d7b81059..8fd09f7d3822 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -24,6 +24,7 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "User", description = "the User API") public interface UserApi { @@ -34,13 +35,18 @@ public interface UserApi { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -49,13 +55,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -64,13 +75,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -81,6 +97,7 @@ public interface UserApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -88,7 +105,11 @@ public interface UserApi { @DeleteMapping( value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + com.netflix.hystrix.HystrixCommand> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -99,6 +120,7 @@ public interface UserApi { * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -108,7 +130,11 @@ public interface UserApi { value = "/user/{username}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + com.netflix.hystrix.HystrixCommand> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -119,6 +145,7 @@ public interface UserApi { * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -127,7 +154,15 @@ public interface UserApi { value = "/user/login", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -135,6 +170,7 @@ public interface UserApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -153,6 +189,7 @@ public interface UserApi { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -160,6 +197,14 @@ public interface UserApi { @PutMapping( value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java index 2c765a51de96..e0a60a6c93bc 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -1,12 +1,20 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A category for a pet diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 8f7cd51e26da..1d5f2e13fed0 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,12 +1,20 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * Describes the result of uploading an image resource diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java index 9a420ed8679c..92654e6fd09c 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,8 +8,15 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * An order for a pets from the pet store diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java index b2fc9539454f..aabd2c2cf4c6 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,8 +11,15 @@ import java.util.List; import org.openapitools.model.Category; import org.openapitools.model.Tag; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java index 7938da997ad1..d83ae0023370 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -1,12 +1,20 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A tag for a pet diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java index d43bccdd77d7..b511217bacd0 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java @@ -1,12 +1,20 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A User who is purchasing from the pet store diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 8b6ead39e2c7..c2ee317fa0b1 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -33,6 +33,7 @@ public interface PetApi { * @param body Pet object that needs to be added to the store (required) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -44,7 +45,11 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -54,6 +59,7 @@ public interface PetApi { * @param apiKey (optional) * @return Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -64,7 +70,15 @@ public interface PetApi { @DeleteMapping( value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -75,6 +89,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -87,7 +102,11 @@ public interface PetApi { value = "/pet/findByStatus", produces = "application/json" ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable); /** @@ -99,6 +118,7 @@ public interface PetApi { * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -111,7 +131,11 @@ public interface PetApi { value = "/pet/findByTags", produces = "application/json" ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable); /** @@ -123,6 +147,7 @@ public interface PetApi { * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -135,7 +160,11 @@ public interface PetApi { value = "/pet/{petId}", produces = "application/json" ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -146,6 +175,7 @@ public interface PetApi { * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -159,7 +189,11 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -170,6 +204,7 @@ public interface PetApi { * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -181,7 +216,19 @@ public interface PetApi { value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + + + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -192,6 +239,7 @@ public interface PetApi { * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -204,6 +252,18 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 83d5530deb79..5cdf46b68581 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -35,6 +35,7 @@ public interface StoreApi { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -42,7 +43,11 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{orderId}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); + ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +); /** @@ -51,6 +56,7 @@ public interface StoreApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -73,6 +79,7 @@ public interface StoreApi { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -82,7 +89,11 @@ public interface StoreApi { value = "/store/order/{orderId}", produces = "application/json" ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); + ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +); /** @@ -92,6 +103,7 @@ public interface StoreApi { * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -100,6 +112,10 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 683cff0ce64b..6171502e1a28 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -34,13 +34,18 @@ public interface UserApi { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -49,13 +54,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -64,13 +74,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -81,6 +96,7 @@ public interface UserApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -88,7 +104,11 @@ public interface UserApi { @DeleteMapping( value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -99,6 +119,7 @@ public interface UserApi { * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -108,7 +129,11 @@ public interface UserApi { value = "/user/{username}", produces = "application/json" ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -119,6 +144,7 @@ public interface UserApi { * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -127,7 +153,15 @@ public interface UserApi { value = "/user/login", produces = "application/json" ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -135,6 +169,7 @@ public interface UserApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -153,6 +188,7 @@ public interface UserApi { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -160,6 +196,14 @@ public interface UserApi { @PutMapping( value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java index 1114316e27f5..f21d835af4da 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * A category for a pet */ diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index 523a64f1874d..ec1b1b81d6a4 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Describes the result of uploading an image resource */ diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java index 12230edbc050..2f24cd46851d 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * An order for a pets from the pet store */ diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java index 1e1b76c7d117..a1f702f1a72f 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * A pet for sale in the pet store */ diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 1476aa7d343a..8e3f67322335 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * A tag for a pet */ diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java index 8bfae36516d1..73fcf01b5375 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * A User who is purchasing from the pet store */ diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index f77fdf21de24..b4b6ccb54e15 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -24,6 +24,7 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "Pet", description = "the Pet API") public interface PetApi { @@ -33,6 +34,7 @@ public interface PetApi { * @param body Pet object that needs to be added to the store (required) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -44,7 +46,11 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -54,6 +60,7 @@ public interface PetApi { * @param apiKey (optional) * @return Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -64,7 +71,15 @@ public interface PetApi { @DeleteMapping( value = "/pet/{petId}" ) - com.netflix.hystrix.HystrixCommand> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + com.netflix.hystrix.HystrixCommand> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -75,6 +90,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -87,7 +103,11 @@ public interface PetApi { value = "/pet/findByStatus", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +); /** @@ -99,6 +119,7 @@ public interface PetApi { * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -111,7 +132,11 @@ public interface PetApi { value = "/pet/findByTags", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); + com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +); /** @@ -123,6 +148,7 @@ public interface PetApi { * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -135,7 +161,11 @@ public interface PetApi { value = "/pet/{petId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + com.netflix.hystrix.HystrixCommand> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -146,6 +176,7 @@ public interface PetApi { * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -159,7 +190,11 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -170,6 +205,7 @@ public interface PetApi { * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -181,7 +217,19 @@ public interface PetApi { value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - com.netflix.hystrix.HystrixCommand> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + com.netflix.hystrix.HystrixCommand> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + + + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -192,6 +240,7 @@ public interface PetApi { * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -204,6 +253,18 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - com.netflix.hystrix.HystrixCommand> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + com.netflix.hystrix.HystrixCommand> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 241a82690b1e..2ef2878d54d5 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -24,6 +24,7 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "Store", description = "the Store API") public interface StoreApi { @@ -35,6 +36,7 @@ public interface StoreApi { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -42,7 +44,11 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{orderId}" ) - com.netflix.hystrix.HystrixCommand> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); + com.netflix.hystrix.HystrixCommand> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +); /** @@ -51,6 +57,7 @@ public interface StoreApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -73,6 +80,7 @@ public interface StoreApi { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -82,7 +90,11 @@ public interface StoreApi { value = "/store/order/{orderId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); + com.netflix.hystrix.HystrixCommand> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +); /** @@ -92,6 +104,7 @@ public interface StoreApi { * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -100,6 +113,10 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + com.netflix.hystrix.HystrixCommand> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index ad21d7b81059..8fd09f7d3822 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -24,6 +24,7 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "User", description = "the User API") public interface UserApi { @@ -34,13 +35,18 @@ public interface UserApi { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -49,13 +55,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -64,13 +75,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -81,6 +97,7 @@ public interface UserApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -88,7 +105,11 @@ public interface UserApi { @DeleteMapping( value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + com.netflix.hystrix.HystrixCommand> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -99,6 +120,7 @@ public interface UserApi { * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -108,7 +130,11 @@ public interface UserApi { value = "/user/{username}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + com.netflix.hystrix.HystrixCommand> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -119,6 +145,7 @@ public interface UserApi { * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -127,7 +154,15 @@ public interface UserApi { value = "/user/login", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -135,6 +170,7 @@ public interface UserApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -153,6 +189,7 @@ public interface UserApi { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -160,6 +197,14 @@ public interface UserApi { @PutMapping( value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java index 1114316e27f5..5df696a20f9f 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A category for a pet diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java index 523a64f1874d..55b0d41ef494 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * Describes the result of uploading an image resource diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java index 12230edbc050..268c00be5971 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,8 +9,15 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * An order for a pets from the pet store diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java index 1e1b76c7d117..09fdde2a852f 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,8 +12,15 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java index 1476aa7d343a..babd5c55f4b4 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A tag for a pet diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java index 8bfae36516d1..c3520381a17b 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A User who is purchasing from the pet store diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java index 08660cdaac36..cc0a67bc61dd 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java @@ -24,6 +24,7 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "pet", description = "the pet API") public interface PetApi { @@ -37,6 +38,7 @@ default Optional getRequest() { * @param body Pet object that needs to be added to the store (required) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -48,7 +50,11 @@ default Optional getRequest() { value = "/pet", consumes = "application/json" ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,6 +67,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @param apiKey (optional) * @return Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -71,7 +78,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -85,6 +100,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -97,7 +113,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = "application/json" ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -126,6 +146,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -138,7 +159,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = "application/json" ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -167,6 +192,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -179,7 +205,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = "application/json" ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -207,6 +237,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -220,7 +251,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = "application/json" ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -234,6 +269,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -245,7 +281,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,6 +307,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -271,7 +320,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = "application/json", consumes = "multipart/form-data" ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java index 229a0ba4240a..ca8d62c95ec2 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java @@ -24,6 +24,7 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "store", description = "the store API") public interface StoreApi { @@ -39,6 +40,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +48,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{orderId}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +64,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -83,6 +90,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -92,7 +100,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{orderId}", produces = "application/json" ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -119,6 +131,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -127,7 +140,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = "application/json" ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java index e2d924590ee8..082d3df1c6e0 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java @@ -24,6 +24,7 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated + @Api(value = "user", description = "the user API") public interface UserApi { @@ -38,13 +39,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,13 +62,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +85,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +110,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -101,7 +118,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -115,6 +136,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -124,7 +146,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = "application/json" ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -152,6 +178,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -160,7 +187,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = "application/json" ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,6 +206,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -192,6 +228,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -199,7 +236,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java index 1114316e27f5..5df696a20f9f 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A category for a pet diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java index 523a64f1874d..55b0d41ef494 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * Describes the result of uploading an image resource diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java index 12230edbc050..268c00be5971 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,8 +9,15 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * An order for a pets from the pet store diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java index 1e1b76c7d117..09fdde2a852f 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,8 +12,15 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java index 1476aa7d343a..babd5c55f4b4 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A tag for a pet diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java index 8bfae36516d1..c3520381a17b 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java @@ -1,13 +1,21 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + + +import java.util.*; /** * A User who is purchasing from the pet store diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java index 2d31a64a04d4..c4fe0acca17a 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { * @param headerBoolean (optional, default to true) * @return default response (status code 200) */ + @ApiOperation(value = "test headers", nickname = "headersTest", notes = "desc", response = TestResponse.class, tags={ "verify-default-value", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "default response", response = TestResponse.class) }) @@ -50,7 +51,31 @@ default Optional getRequest() { value = "/test-headers", produces = { "application/json" } ) - default ResponseEntity headersTest(@ApiParam(value = "" , defaultValue="11.2") @RequestHeader(value="headerNumber", required=false) BigDecimal headerNumber,@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerString", required=false) String headerString,@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerStringWrapped", required=false) String headerStringWrapped,@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotes", required=false) String headerStringQuotes,@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotesWrapped", required=false) String headerStringQuotesWrapped,@ApiParam(value = "" , defaultValue="true") @RequestHeader(value="headerBoolean", required=false) Boolean headerBoolean) { + default ResponseEntity headersTest( + +@ApiParam(value = "" , defaultValue="11.2") @RequestHeader(value="headerNumber", required=false) BigDecimal headerNumber + +, + +@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerString", required=false) String headerString + +, + +@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerStringWrapped", required=false) String headerStringWrapped + +, + +@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotes", required=false) String headerStringQuotes + +, + +@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotesWrapped", required=false) String headerStringQuotesWrapped + +, + +@ApiParam(value = "" , defaultValue="true") @RequestHeader(value="headerBoolean", required=false) Boolean headerBoolean + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java index a3f907809a00..56de5a5c6f1c 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { * @param queryBoolean (optional, default to true) * @return default response (status code 200) */ + @ApiOperation(value = "test query params", nickname = "queryParamsTest", notes = "desc", response = TestResponse.class, tags={ "verify-default-value", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "default response", response = TestResponse.class) }) @@ -50,7 +51,31 @@ default Optional getRequest() { value = "/test-query-params", produces = { "application/json" } ) - default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue="11.2") BigDecimal queryNumber,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue="qwerty") String queryString,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue="qwerty") String queryStringWrapped,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotes,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotesWrapped,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue="true") Boolean queryBoolean) { + default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue="11.2") BigDecimal queryNumber + + + +,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue="qwerty") String queryString + + + +,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue="qwerty") String queryStringWrapped + + + +,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotes + + + +,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotesWrapped + + + +,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue="true") Boolean queryBoolean + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java index 765ab01a234e..6abf9ea575e8 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TestResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TestResponse { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java index 8326ab48c02c..70e9ba9457f3 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -38,6 +38,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -46,7 +47,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default CompletableFuture> call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java index b301ad0b4855..4f30018bbd3d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java @@ -47,6 +47,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -54,7 +55,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default CompletableFuture> createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default CompletableFuture> createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -67,6 +72,7 @@ default CompletableFuture> createXmlItem(@ApiParam(value = * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -74,7 +80,11 @@ default CompletableFuture> createXmlItem(@ApiParam(value = value = "/fake/outer/boolean", produces = { "*/*" } ) - default CompletableFuture> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default CompletableFuture> fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -87,6 +97,7 @@ default CompletableFuture> fakeOuterBooleanSerialize(@Ap * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -94,7 +105,11 @@ default CompletableFuture> fakeOuterBooleanSerialize(@Ap value = "/fake/outer/composite", produces = { "*/*" } ) - default CompletableFuture> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default CompletableFuture> fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -118,6 +133,7 @@ default CompletableFuture> fakeOuterCompositeSeri * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -125,7 +141,11 @@ default CompletableFuture> fakeOuterCompositeSeri value = "/fake/outer/number", produces = { "*/*" } ) - default CompletableFuture> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default CompletableFuture> fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -138,6 +158,7 @@ default CompletableFuture> fakeOuterNumberSerialize(@ * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -145,7 +166,11 @@ default CompletableFuture> fakeOuterNumberSerialize(@ value = "/fake/outer/string", produces = { "*/*" } ) - default CompletableFuture> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default CompletableFuture> fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -158,6 +183,7 @@ default CompletableFuture> fakeOuterStringSerialize(@ApiP * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -165,7 +191,11 @@ default CompletableFuture> fakeOuterStringSerialize(@ApiP value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default CompletableFuture> testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -178,6 +208,7 @@ default CompletableFuture> testBodyWithFileSchema(@ApiParam * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -185,7 +216,15 @@ default CompletableFuture> testBodyWithFileSchema(@ApiParam value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -198,6 +237,7 @@ default CompletableFuture> testBodyWithQueryParams(@NotNull * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -206,7 +246,11 @@ default CompletableFuture> testBodyWithQueryParams(@NotNull produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default CompletableFuture> testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -244,6 +288,7 @@ default CompletableFuture> testClientModel(@ApiParam(valu * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -255,7 +300,63 @@ default CompletableFuture> testClientModel(@ApiParam(valu value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default CompletableFuture> testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -276,6 +377,7 @@ default CompletableFuture> testEndpointParameters(@ApiParam * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -284,7 +386,39 @@ default CompletableFuture> testEndpointParameters(@ApiParam value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default CompletableFuture> testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -302,13 +436,38 @@ default CompletableFuture> testEnumParameters(@ApiParam(val * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -320,6 +479,7 @@ default CompletableFuture> testGroupParameters(@NotNull @Ap * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -327,7 +487,11 @@ default CompletableFuture> testGroupParameters(@NotNull @Ap value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default CompletableFuture> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default CompletableFuture> testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -340,6 +504,7 @@ default CompletableFuture> testInlineAdditionalProperties(@ * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -347,7 +512,15 @@ default CompletableFuture> testInlineAdditionalProperties(@ value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default CompletableFuture> testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -364,13 +537,34 @@ default CompletableFuture> testJsonFormData(@ApiParam(value * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -384,6 +578,7 @@ default CompletableFuture> testQueryParameterCollectionForm * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -396,7 +591,19 @@ default CompletableFuture> testQueryParameterCollectionForm produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default CompletableFuture> uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 3de6e0e21889..52a8b67143b5 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -38,6 +38,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -49,7 +50,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default CompletableFuture> testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java index f2512f9eac34..f34e5df28221 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -52,7 +53,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default CompletableFuture> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -66,6 +71,7 @@ default CompletableFuture> addPet(@ApiParam(value = "Pet ob * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -77,7 +83,15 @@ default CompletableFuture> addPet(@ApiParam(value = "Pet ob @DeleteMapping( value = "/pet/{petId}" ) - default CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default CompletableFuture> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -91,6 +105,7 @@ default CompletableFuture> deletePet(@ApiParam(value = "Pet * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -103,7 +118,11 @@ default CompletableFuture> deletePet(@ApiParam(value = "Pet value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -134,6 +153,7 @@ default CompletableFuture>> findPetsByStatus(@NotNull @ * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -146,7 +166,11 @@ default CompletableFuture>> findPetsByStatus(@NotNull @ value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -177,6 +201,7 @@ default CompletableFuture>> findPetsByTags(@NotNull @Api * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -189,7 +214,11 @@ default CompletableFuture>> findPetsByTags(@NotNull @Api value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default CompletableFuture> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -220,6 +249,7 @@ default CompletableFuture> getPetById(@ApiParam(value = "ID * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -234,7 +264,11 @@ default CompletableFuture> getPetById(@ApiParam(value = "ID value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default CompletableFuture> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -248,6 +282,7 @@ default CompletableFuture> updatePet(@ApiParam(value = "Pet * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -259,7 +294,19 @@ default CompletableFuture> updatePet(@ApiParam(value = "Pet value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default CompletableFuture> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -273,6 +320,7 @@ default CompletableFuture> updatePetWithForm(@ApiParam(valu * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -285,7 +333,19 @@ default CompletableFuture> updatePetWithForm(@ApiParam(valu produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default CompletableFuture> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java index 03fa53219d90..6300e9f14f26 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -47,7 +48,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default CompletableFuture> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -59,6 +64,7 @@ default CompletableFuture> deleteOrder(@ApiParam(value = "I * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -84,6 +90,7 @@ default CompletableFuture>> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -93,7 +100,11 @@ default CompletableFuture>> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default CompletableFuture> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -122,6 +133,7 @@ default CompletableFuture> getOrderById(@Min(1L) @Max(5L) * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -130,7 +142,11 @@ default CompletableFuture> getOrderById(@Min(1L) @Max(5L) value = "/store/order", produces = { "application/xml", "application/json" } ) - default CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default CompletableFuture> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java index bc349aa67c0f..97824b434ddd 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java @@ -39,13 +39,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default CompletableFuture> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -57,13 +62,18 @@ default CompletableFuture> createUser(@ApiParam(value = "Cr * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default CompletableFuture> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -75,13 +85,18 @@ default CompletableFuture> createUsersWithArrayInput(@ApiPa * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default CompletableFuture> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -95,6 +110,7 @@ default CompletableFuture> createUsersWithListInput(@ApiPar * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -102,7 +118,11 @@ default CompletableFuture> createUsersWithListInput(@ApiPar @DeleteMapping( value = "/user/{username}" ) - default CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default CompletableFuture> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -116,6 +136,7 @@ default CompletableFuture> deleteUser(@ApiParam(value = "Th * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -125,7 +146,11 @@ default CompletableFuture> deleteUser(@ApiParam(value = "Th value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default CompletableFuture> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -155,6 +180,7 @@ default CompletableFuture> getUserByName(@ApiParam(value = * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -163,7 +189,15 @@ default CompletableFuture> getUserByName(@ApiParam(value = value = "/user/login", produces = { "application/xml", "application/json" } ) - default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -174,6 +208,7 @@ default CompletableFuture> loginUser(@NotNull @ApiParam(v * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -195,6 +230,7 @@ default CompletableFuture> logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -202,7 +238,15 @@ default CompletableFuture> logoutUser() { @PutMapping( value = "/user/{username}" ) - default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default CompletableFuture> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Animal.java index 1319038cccc0..8dd1dd124d3a 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java index c7912d432b77..db1677b34480 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java index aba5eb47270c..7c043481d96e 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java index 5f44cab5669e..16bbedb032d9 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java index 62b5e8c1c9ec..f370ee3ab08b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -45,7 +46,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java index 1d52ff9cf887..d0d32214dd77 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java @@ -46,6 +46,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -53,7 +54,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +71,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -73,7 +79,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -86,6 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -93,7 +104,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -115,6 +130,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -122,7 +138,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,6 +155,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -142,7 +163,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -155,6 +180,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -162,7 +188,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -175,6 +205,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -182,7 +213,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -195,6 +234,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -203,7 +243,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -239,6 +283,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -250,7 +295,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -271,6 +372,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -279,7 +381,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,13 +431,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -315,6 +474,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -322,7 +482,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -335,6 +499,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -342,7 +507,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,13 +532,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -379,6 +573,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -391,7 +586,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ce5242fa1b93..48757ce3063d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -48,7 +49,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java index 6c50971728c1..fe7604d0c136 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -51,7 +52,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,6 +70,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -76,7 +82,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -90,6 +104,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -102,7 +117,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -131,6 +150,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -143,7 +163,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -172,6 +196,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -184,7 +209,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -213,6 +242,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -227,7 +257,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -241,6 +275,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -252,7 +287,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -266,6 +313,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -278,7 +326,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java index a18ef0803417..88be51eee908 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +47,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +63,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -83,6 +89,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -92,7 +99,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -119,6 +130,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -127,7 +139,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java index bdd829c2178f..ce4283bd9370 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java @@ -38,13 +38,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,13 +61,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +84,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +109,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -101,7 +117,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -115,6 +135,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -124,7 +145,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -152,6 +177,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -160,7 +186,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,6 +205,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -192,6 +227,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -199,7 +235,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Animal.java index 1319038cccc0..8dd1dd124d3a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java index c7912d432b77..db1677b34480 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java index aba5eb47270c..7c043481d96e 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java index 04e164b1c521..5c8374b2e45d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 54dd2472e4cf..ec0b4939863b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java index 8143e0e06a0d..9d42ec836a6a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.LocalDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java index 5f44cab5669e..16bbedb032d9 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 62b5e8c1c9ec..f370ee3ab08b 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -45,7 +46,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 9c17aee08e3d..51e6e837e08f 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -46,6 +46,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -53,7 +54,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +71,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -73,7 +79,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -86,6 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -93,7 +104,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -115,6 +130,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -122,7 +138,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,6 +155,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -142,7 +163,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -155,6 +180,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -162,7 +188,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -175,6 +205,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -182,7 +213,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -195,6 +234,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -203,7 +243,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -239,6 +283,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -250,7 +295,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -271,6 +372,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -279,7 +381,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,13 +431,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -315,6 +474,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -322,7 +482,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -335,6 +499,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -342,7 +507,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,13 +532,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -379,6 +573,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -391,7 +586,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ce5242fa1b93..48757ce3063d 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -48,7 +49,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 6c50971728c1..fe7604d0c136 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -51,7 +52,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,6 +70,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -76,7 +82,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -90,6 +104,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -102,7 +117,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -131,6 +150,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -143,7 +163,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -172,6 +196,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -184,7 +209,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -213,6 +242,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -227,7 +257,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -241,6 +275,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -252,7 +287,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -266,6 +313,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -278,7 +326,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index a18ef0803417..88be51eee908 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +47,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +63,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -83,6 +89,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -92,7 +99,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -119,6 +130,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -127,7 +139,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java index bdd829c2178f..ce4283bd9370 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -38,13 +38,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,13 +61,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +84,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +109,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -101,7 +117,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -115,6 +135,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -124,7 +145,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -152,6 +177,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -160,7 +186,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,6 +205,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -192,6 +227,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -199,7 +235,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index ca35a4dabdbe..6d6505c1611c 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 3b70a93bfb68..250b49d0c083 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d0096c55cb18..10a57b65a8a5 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 0815c5ab76d5..fdad80ab490c 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 74abe89e2eba..53ebb6447578 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 824a44a55708..6264911b7f62 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.math.BigDecimal; import java.util.HashMap; import java.util.Map; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index cc8a8acc0d4f..f90f6fce85a8 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index fb81a46af400..b16840f621a2 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Animal.java index 6c1b4f75d082..d69dd4f980a5 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 53289137ab69..18ba822148bc 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index f948c06157ac..5e835e1a175e 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java index 809d131fca5c..f53fc16dc060 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.model.ReadOnlyFirst; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java index de0fcc89cac8..1db04b36f451 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java index c828f01f4026..d8c3edb360ba 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; 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.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java index 9dc3270d4e24..6fe091581e1b 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java index 94756b3484ec..9167c15218ad 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java index 9d4ec215e785..d6b48d464a80 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java index 7e0770622f47..bc2767edcf30 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java index 328bae149d12..24a57ea3f813 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java @@ -1,13 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java index 594c1b919fb5..a64a0d067cd5 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java index a252c04222c6..777876996de4 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java index 9b41745ce153..de5fe578cad7 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java index 33ea41485bc9..74e50242bcd5 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumClass.java index b3c09b9f30e3..6dc082079cf5 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumClass.java @@ -1,11 +1,17 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java index 21c7724914f2..cb57984cb19b 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 466c6f63c23c..46217847f4c0 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java index 0962957d79fc..6377d22d0c76 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.time.OffsetDateTime; import java.util.Arrays; import java.util.UUID; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 105d23165aa1..f5419f19f4b0 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java index f7c770069249..308887571277 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index a7e614a25e2f..4ebde561113e 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Map; import java.util.UUID; import org.openapitools.model.Animal; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java index 56d627978a9b..513c6029234f 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java @@ -1,13 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 9af9c13b9065..4c476f018163 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java index ec3f1fc6b937..0c8859109559 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,13 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java index 09c05ca6d10f..5551de4c5438 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java @@ -1,13 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java index 82239239bda6..c1ea4082d1d4 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java index fdf2477970a3..8b202bf55e65 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java index 0657c9fbe6ab..7c5760c17c99 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterEnum.java index 075522bdeffb..41cfb97d1e69 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,11 +1,17 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java index b6fcfa069d7a..6521708cb7ce 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.Set; import org.openapitools.model.Category; import org.openapitools.model.Tag; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 05ab3a4d0c76..01e417f322e5 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java index b3616c034baf..c5e9680abf3e 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java index 053950ec28cc..2baf81a89f66 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java index ea87ce615dc1..824c9f0925fb 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java index 5acd91077501..dfbb782785c7 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java index 24c2f10976f7..1a8141600499 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java @@ -1,16 +1,22 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java index 89c02b4307dc..4edaa257ef43 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 62b5e8c1c9ec..f370ee3ab08b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -45,7 +46,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index b0b57f815bd6..83c979b95681 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -46,6 +46,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -53,7 +54,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +71,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -73,7 +79,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -86,6 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -93,7 +104,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -115,6 +130,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -122,7 +138,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,6 +155,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -142,7 +163,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -155,6 +180,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -162,7 +188,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -175,6 +205,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -182,7 +213,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -195,6 +234,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -203,7 +243,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -239,6 +283,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = { @Authorization(value = "http_basic_test") @@ -250,7 +295,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -271,6 +372,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -279,7 +381,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,13 +431,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -315,6 +474,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -322,7 +482,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -335,6 +499,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -342,7 +507,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,13 +532,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -379,6 +573,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -391,7 +586,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ce5242fa1b93..48757ce3063d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -48,7 +49,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 2e67f9eb6099..17bb23345a84 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -38,6 +38,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -50,7 +51,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -64,6 +69,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -75,7 +81,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -89,6 +103,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -101,7 +116,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -130,6 +149,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -142,7 +162,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -171,6 +195,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -183,7 +208,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -212,6 +241,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -226,7 +256,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -240,6 +274,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -251,7 +286,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -265,6 +312,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -277,7 +325,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index a18ef0803417..88be51eee908 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +47,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +63,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -83,6 +89,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -92,7 +99,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -119,6 +130,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -127,7 +139,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index bdd829c2178f..ce4283bd9370 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -38,13 +38,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,13 +61,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +84,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +109,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -101,7 +117,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -115,6 +135,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -124,7 +145,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -152,6 +177,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -160,7 +186,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,6 +205,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -192,6 +227,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -199,7 +235,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Animal.java index 7fb6b8e2ef66..3fd8af44b1d3 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java index 289be8925e1b..16cd1e6e7e5d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java index 62b5e8c1c9ec..f370ee3ab08b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -45,7 +46,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java index 9c17aee08e3d..51e6e837e08f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java @@ -46,6 +46,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -53,7 +54,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +71,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -73,7 +79,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -86,6 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -93,7 +104,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -115,6 +130,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -122,7 +138,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,6 +155,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -142,7 +163,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -155,6 +180,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -162,7 +188,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -175,6 +205,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -182,7 +213,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -195,6 +234,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -203,7 +243,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -239,6 +283,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -250,7 +295,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -271,6 +372,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -279,7 +381,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,13 +431,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -315,6 +474,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -322,7 +482,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -335,6 +499,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -342,7 +507,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,13 +532,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -379,6 +573,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -391,7 +586,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ce5242fa1b93..48757ce3063d 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -48,7 +49,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java index 6c50971728c1..fe7604d0c136 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -51,7 +52,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,6 +70,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -76,7 +82,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -90,6 +104,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -102,7 +117,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -131,6 +150,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -143,7 +163,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -172,6 +196,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -184,7 +209,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -213,6 +242,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -227,7 +257,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -241,6 +275,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -252,7 +287,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -266,6 +313,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -278,7 +326,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java index a18ef0803417..88be51eee908 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +47,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +63,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -83,6 +89,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -92,7 +99,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -119,6 +130,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -127,7 +139,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java index bdd829c2178f..ce4283bd9370 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java @@ -38,13 +38,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,13 +61,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +84,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +109,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -101,7 +117,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -115,6 +135,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -124,7 +145,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -152,6 +177,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -160,7 +186,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,6 +205,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -192,6 +227,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -199,7 +235,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index bb049174195b..2301d1da5095 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 31e2f5d206b1..e42e14353a50 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index aeb640876a2c..b03b31553889 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 7b6f5ac16c76..5e2ba751d12b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 49a6b9d41579..b71b9153457a 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 53421c6699f6..6cee97446076 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 093f44e90bfb..fd0e746a6bc9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 60bb65615475..71af35647194 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Animal.java index 21643177b365..06f7cb084f9e 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 9fa32d2ea9cd..a9b3ad2ded74 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 7910abcc6964..33944749ec47 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java index cb245ac0b603..4774ea9ad1a9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java index b6edd21f6d93..9035cec18b40 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java index 8875754744fe..70ddab2979f4 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java index 0e18f88f3865..5e9b9028d0a4 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java index 5f0126571a8b..6cd52a9a30e9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java index 6953a982a8ac..20514c420c17 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java index 15d9b80c2372..982543f88a23 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java index f1198fa1a3c4..f74c32f05c74 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java index 516c8671745a..2f1f03a97526 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java index f81bd6fa78f3..ed0aeae42000 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java index cfedc80fa7e0..af34c100a344 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java index 0fb3e1449707..0e11665c8823 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumClass.java index 9575f4c28f32..2d83af41c8e3 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java index b10549a94905..74eb395a3e3f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 2e1fa7540451..ae8b67935340 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java index 80ea59cef112..16cb1b3050a7 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index e2a75a9f0e30..abd4baba4f25 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java index 7e43d87491dc..34f1cfa59509 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 2cab02c3d081..8811024cce24 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java index 90397952b59e..f74c29e604cf 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java index 2850c513cfa8..1f7b73a77362 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java index 37ab8e858d55..d17a0da84c8f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java index 87bbf9823c37..c5882dc983a9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java index 96b2bda9c408..c660b0b40308 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java index a4575fdf1d85..cabfdf274c31 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java index 181c98b2b6d9..f1520fadfe6e 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterEnum.java index aa1dd337f5dd..e293d46d7b43 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java index 06647f494bcb..60c026973485 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java index dc9812baee6d..5392f5f3c5cc 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java index cf55f23775ca..352150b1c53b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java index 8bc9dc399f8a..a0962debf187 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java index 70f7a789f6b8..c1670e5c661a 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java index 56092259288e..eef616a2f828 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java index 12737b21d294..06af2c2695e2 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java index 75eb7b6f26db..fb430f7f5e90 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index dfae7d61930c..683ef66fdd0b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -29,6 +29,7 @@ public interface AnotherFakeApi { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -37,6 +38,10 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 2e0af3fc11b8..cad46630a33e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -41,7 +41,11 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 68cec85a19ab..d43afc47f987 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -38,6 +38,7 @@ public interface FakeApi { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -45,7 +46,11 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +); /** @@ -55,6 +60,7 @@ public interface FakeApi { * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -62,7 +68,11 @@ public interface FakeApi { value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +); /** @@ -72,6 +82,7 @@ public interface FakeApi { * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -79,7 +90,11 @@ public interface FakeApi { value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +); /** @@ -89,6 +104,7 @@ public interface FakeApi { * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -96,7 +112,11 @@ public interface FakeApi { value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +); /** @@ -106,6 +126,7 @@ public interface FakeApi { * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -113,7 +134,11 @@ public interface FakeApi { value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +); /** @@ -123,6 +148,7 @@ public interface FakeApi { * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -130,7 +156,11 @@ public interface FakeApi { value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +); /** @@ -140,6 +170,7 @@ public interface FakeApi { * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -147,7 +178,15 @@ public interface FakeApi { value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +); /** @@ -157,6 +196,7 @@ public interface FakeApi { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -165,7 +205,11 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); /** @@ -189,6 +233,7 @@ public interface FakeApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -200,7 +245,63 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -218,6 +319,7 @@ public interface FakeApi { * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -226,7 +328,39 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -241,13 +375,38 @@ public interface FakeApi { * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +); /** @@ -256,6 +415,7 @@ public interface FakeApi { * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -263,7 +423,11 @@ public interface FakeApi { value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +); /** @@ -273,6 +437,7 @@ public interface FakeApi { * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -280,7 +445,15 @@ public interface FakeApi { value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -294,13 +467,34 @@ public interface FakeApi { * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +); /** @@ -311,6 +505,7 @@ public interface FakeApi { * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -323,6 +518,18 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java index c05e348d413f..56685918f5d7 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java @@ -50,7 +50,11 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,7 +67,11 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -76,7 +84,11 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -96,7 +108,11 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -109,7 +125,11 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -122,7 +142,11 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,7 +159,15 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -148,7 +180,11 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -182,7 +218,63 @@ public ResponseEntity testClientModel(@ApiParam(value = "client model" , * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -203,7 +295,39 @@ public ResponseEntity testEndpointParameters(@ApiParam(value = "None", req * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -221,7 +345,31 @@ public ResponseEntity testEnumParameters(@ApiParam(value = "Header paramet * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -233,7 +381,11 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -246,7 +398,15 @@ public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "re * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -263,7 +423,27 @@ public ResponseEntity testJsonFormData(@ApiParam(value = "field1", require * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -277,7 +457,19 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index d2215dd0d1be..f07f330318ca 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -29,6 +29,7 @@ public interface FakeClassnameTestApi { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -40,6 +41,10 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index bf34d83297ee..6e326ba96237 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -41,7 +41,11 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java index b9655c2c700f..731b738d329b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -31,6 +31,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -43,7 +44,11 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -54,6 +59,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -65,7 +71,15 @@ public interface PetApi { @DeleteMapping( value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -76,6 +90,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -88,7 +103,11 @@ public interface PetApi { value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +); /** @@ -100,6 +119,7 @@ public interface PetApi { * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -112,7 +132,11 @@ public interface PetApi { value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +); /** @@ -124,6 +148,7 @@ public interface PetApi { * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -136,7 +161,11 @@ public interface PetApi { value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -148,6 +177,7 @@ public interface PetApi { * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -162,7 +192,11 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -173,6 +207,7 @@ public interface PetApi { * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -184,7 +219,19 @@ public interface PetApi { value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -195,6 +242,7 @@ public interface PetApi { * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -207,6 +255,18 @@ public interface PetApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java index cd559c767d71..b7336c5f7219 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java @@ -43,7 +43,11 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -57,7 +61,15 @@ public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to b * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + public ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,7 +83,11 @@ public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requi * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -98,7 +114,11 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -125,7 +145,11 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + public ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -152,7 +176,11 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",re * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -166,7 +194,19 @@ public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs t * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -180,7 +220,19 @@ public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 69c047f7c677..974a6cd1773f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -31,6 +31,7 @@ public interface StoreApi { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -38,7 +39,11 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); + ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +); /** @@ -47,6 +52,7 @@ public interface StoreApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -69,6 +75,7 @@ public interface StoreApi { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -78,7 +85,11 @@ public interface StoreApi { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); + ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +); /** @@ -88,6 +99,7 @@ public interface StoreApi { * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -96,6 +108,10 @@ public interface StoreApi { value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java index 4f0f16bb9b71..833ece720826 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java @@ -43,7 +43,11 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + public ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -70,7 +74,11 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + public ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -95,7 +103,11 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 972cc8bc4682..463ac44f37e1 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -30,13 +30,18 @@ public interface UserApi { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -45,13 +50,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -60,13 +70,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -77,6 +92,7 @@ public interface UserApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -84,7 +100,11 @@ public interface UserApi { @DeleteMapping( value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -95,6 +115,7 @@ public interface UserApi { * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -104,7 +125,11 @@ public interface UserApi { value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -115,6 +140,7 @@ public interface UserApi { * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -123,7 +149,15 @@ public interface UserApi { value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -131,6 +165,7 @@ public interface UserApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -149,6 +184,7 @@ public interface UserApi { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -156,6 +192,14 @@ public interface UserApi { @PutMapping( value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java index 94ea640fd226..5a85b48d7d4c 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java @@ -42,7 +42,11 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -54,7 +58,11 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object" , * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,7 +74,11 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -80,7 +92,11 @@ public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + public ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,7 +110,11 @@ public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + public ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -120,7 +140,15 @@ public ResponseEntity getUserByName(@ApiParam(value = "The name that needs * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,7 +174,15 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index ca35a4dabdbe..3f973de184af 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 3b70a93bfb68..45627a0b0dfc 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d0096c55cb18..fd33542eaa4a 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 70048242f0c7..582981d9e4da 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 74abe89e2eba..08816c5f864c 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 824a44a55708..24124ba388e1 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index cc8a8acc0d4f..01fe5de8d21f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index fb81a46af400..5ef16f06089a 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Animal.java index 6c1b4f75d082..ad0911728b0f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index cf1959a11e24..a0785bc311bd 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index ca0c1058d604..305d698923e6 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java index 47de6885c4d3..0a4cab313f8f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java index de0fcc89cac8..3069741a8f29 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java index c828f01f4026..4869217cd511 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java index 9dc3270d4e24..03798bccd5ff 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java index 94756b3484ec..c22d5479d9ad 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java index 9d4ec215e785..3b8461ca67f5 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java index 7e0770622f47..764a3cde53d5 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java index 328bae149d12..314cec6e2053 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,6 +9,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java index 594c1b919fb5..63d30b86df51 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java index a252c04222c6..3e79b5cda849 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java index 9b41745ce153..283d366f4e36 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java index 775b965f0640..fbcbbc9d61bd 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumClass.java index b3c09b9f30e3..344a5cc7f8d9 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumClass.java @@ -1,11 +1,16 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java index 21c7724914f2..5ddf8861a0c1 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 9d8809347cf6..5c213959cbaa 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java index 60247deff4c6..a21122f3b339 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,9 +14,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 105d23165aa1..11cbaac5d035 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java index ef38614ddc71..994b93facb71 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 6e5065a7f044..85f8fef1e7b2 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,9 +15,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java index 56d627978a9b..a523a095a0d0 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,6 +9,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 9af9c13b9065..070916aae78e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java index ec3f1fc6b937..2887e82ae242 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,6 +9,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java index 09c05ca6d10f..e90e446667d0 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,6 +9,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java index 82239239bda6..ee8ed1d5d22c 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java index 43f887d1fc29..6773f15e1ccc 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java index 0657c9fbe6ab..f73144c6de5d 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterEnum.java index 075522bdeffb..214947f375cd 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,11 +1,16 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java index aa1605a65d58..7a343a524467 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,9 +16,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 05ab3a4d0c76..52ab83712816 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java index b3616c034baf..49d10009704b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java index 053950ec28cc..0cd2a1c97485 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 029e340bfd60..45701a091670 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java index 0f0c046e1ca7..ef0dab478ceb 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java index 24c2f10976f7..09bf487c497b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,9 +9,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java index 48690657a23f..4f68e2db608f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java index 62b5e8c1c9ec..f370ee3ab08b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -45,7 +46,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index 9c17aee08e3d..51e6e837e08f 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -46,6 +46,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -53,7 +54,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +71,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -73,7 +79,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -86,6 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -93,7 +104,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -115,6 +130,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -122,7 +138,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,6 +155,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -142,7 +163,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -155,6 +180,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -162,7 +188,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -175,6 +205,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -182,7 +213,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -195,6 +234,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -203,7 +243,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -239,6 +283,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -250,7 +295,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -271,6 +372,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -279,7 +381,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,13 +431,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -315,6 +474,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -322,7 +482,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -335,6 +499,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -342,7 +507,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,13 +532,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -379,6 +573,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -391,7 +586,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ce5242fa1b93..48757ce3063d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -48,7 +49,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java index 6c50971728c1..fe7604d0c136 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -51,7 +52,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,6 +70,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -76,7 +82,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -90,6 +104,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -102,7 +117,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -131,6 +150,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -143,7 +163,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -172,6 +196,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -184,7 +209,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -213,6 +242,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -227,7 +257,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -241,6 +275,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -252,7 +287,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -266,6 +313,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -278,7 +326,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java index a18ef0803417..88be51eee908 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +47,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +63,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -83,6 +89,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -92,7 +99,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -119,6 +130,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -127,7 +139,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java index bdd829c2178f..ce4283bd9370 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java @@ -38,13 +38,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,13 +61,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +84,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +109,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -101,7 +117,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -115,6 +135,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -124,7 +145,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -152,6 +177,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -160,7 +186,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,6 +205,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -192,6 +227,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -199,7 +235,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Animal.java index 1319038cccc0..8dd1dd124d3a 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java index c7912d432b77..db1677b34480 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java index aba5eb47270c..7c043481d96e 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java index 5f44cab5669e..16bbedb032d9 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index f4afb63f6185..1b9e93b2dfd0 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -33,6 +33,7 @@ default AnotherFakeApiDelegate getDelegate() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -41,7 +42,11 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index f085be2317d2..5fe792e29b91 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -42,6 +42,7 @@ default FakeApiDelegate getDelegate() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -49,7 +50,11 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return getDelegate().createXmlItem(xmlItem); } @@ -61,6 +66,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -68,7 +74,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -80,6 +90,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -87,7 +98,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -99,6 +114,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -106,7 +122,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -118,6 +138,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -125,7 +146,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return getDelegate().fakeOuterStringSerialize(body); } @@ -137,6 +162,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -144,7 +170,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return getDelegate().testBodyWithFileSchema(body); } @@ -156,6 +186,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -163,7 +194,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -175,6 +214,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -183,7 +223,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClientModel(body); } @@ -209,6 +253,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -220,7 +265,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -240,6 +341,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -248,7 +350,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -265,13 +399,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -282,6 +441,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -289,7 +449,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return getDelegate().testInlineAdditionalProperties(param); } @@ -301,6 +465,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -308,7 +473,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -324,13 +497,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -343,6 +537,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -355,7 +550,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 572b49ba2a94..e9757bbcb1c1 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -33,6 +33,7 @@ default FakeClassnameTestApiDelegate getDelegate() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -44,7 +45,11 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java index b7a84c916cfb..f7eeb9c44e84 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java @@ -35,6 +35,7 @@ default PetApiDelegate getDelegate() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -47,7 +48,11 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().addPet(body); } @@ -60,6 +65,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -71,7 +77,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return getDelegate().deletePet(petId, apiKey); } @@ -84,6 +98,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -96,7 +111,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { return getDelegate().findPetsByStatus(status); } @@ -110,6 +129,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -122,7 +142,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { return getDelegate().findPetsByTags(tags); } @@ -136,6 +160,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -148,7 +173,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return getDelegate().getPetById(petId); } @@ -162,6 +191,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -176,7 +206,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().updatePet(body); } @@ -189,6 +223,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -200,7 +235,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -213,6 +260,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -225,7 +273,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java index 05cfb8f5758a..9e88807de925 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -35,6 +35,7 @@ default StoreApiDelegate getDelegate() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -42,7 +43,11 @@ default StoreApiDelegate getDelegate() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return getDelegate().deleteOrder(orderId); } @@ -53,6 +58,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -77,6 +83,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -86,7 +93,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return getDelegate().getOrderById(orderId); } @@ -98,6 +109,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -106,7 +118,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java index 5b3512235937..65791557210c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java @@ -34,13 +34,18 @@ default UserApiDelegate getDelegate() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().createUser(body); } @@ -51,13 +56,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithArrayInput(body); } @@ -68,13 +78,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithListInput(body); } @@ -87,6 +102,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -94,7 +110,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return getDelegate().deleteUser(username); } @@ -107,6 +127,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -116,7 +137,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return getDelegate().getUserByName(username); } @@ -129,6 +154,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -137,7 +163,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return getDelegate().loginUser(username, password); } @@ -147,6 +181,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -167,6 +202,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -174,7 +210,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Animal.java index 1319038cccc0..8dd1dd124d3a 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java index c7912d432b77..db1677b34480 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java index aba5eb47270c..7c043481d96e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java index 5f44cab5669e..16bbedb032d9 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java index f4afb63f6185..1b9e93b2dfd0 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -33,6 +33,7 @@ default AnotherFakeApiDelegate getDelegate() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -41,7 +42,11 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index f085be2317d2..5fe792e29b91 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -42,6 +42,7 @@ default FakeApiDelegate getDelegate() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -49,7 +50,11 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return getDelegate().createXmlItem(xmlItem); } @@ -61,6 +66,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -68,7 +74,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -80,6 +90,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -87,7 +98,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -99,6 +114,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -106,7 +122,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -118,6 +138,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -125,7 +146,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return getDelegate().fakeOuterStringSerialize(body); } @@ -137,6 +162,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -144,7 +170,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return getDelegate().testBodyWithFileSchema(body); } @@ -156,6 +186,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -163,7 +194,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -175,6 +214,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -183,7 +223,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClientModel(body); } @@ -209,6 +253,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -220,7 +265,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -240,6 +341,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -248,7 +350,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -265,13 +399,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -282,6 +441,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -289,7 +449,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return getDelegate().testInlineAdditionalProperties(param); } @@ -301,6 +465,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -308,7 +473,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -324,13 +497,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -343,6 +537,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -355,7 +550,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 572b49ba2a94..e9757bbcb1c1 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -33,6 +33,7 @@ default FakeClassnameTestApiDelegate getDelegate() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -44,7 +45,11 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java index b7a84c916cfb..f7eeb9c44e84 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java @@ -35,6 +35,7 @@ default PetApiDelegate getDelegate() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -47,7 +48,11 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().addPet(body); } @@ -60,6 +65,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -71,7 +77,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return getDelegate().deletePet(petId, apiKey); } @@ -84,6 +98,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -96,7 +111,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { return getDelegate().findPetsByStatus(status); } @@ -110,6 +129,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -122,7 +142,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { return getDelegate().findPetsByTags(tags); } @@ -136,6 +160,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -148,7 +173,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return getDelegate().getPetById(petId); } @@ -162,6 +191,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -176,7 +206,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().updatePet(body); } @@ -189,6 +223,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -200,7 +235,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -213,6 +260,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -225,7 +273,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java index 05cfb8f5758a..9e88807de925 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java @@ -35,6 +35,7 @@ default StoreApiDelegate getDelegate() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -42,7 +43,11 @@ default StoreApiDelegate getDelegate() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return getDelegate().deleteOrder(orderId); } @@ -53,6 +58,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -77,6 +83,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -86,7 +93,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return getDelegate().getOrderById(orderId); } @@ -98,6 +109,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -106,7 +118,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java index 5b3512235937..65791557210c 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java @@ -34,13 +34,18 @@ default UserApiDelegate getDelegate() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().createUser(body); } @@ -51,13 +56,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithArrayInput(body); } @@ -68,13 +78,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithListInput(body); } @@ -87,6 +102,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -94,7 +110,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return getDelegate().deleteUser(username); } @@ -107,6 +127,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -116,7 +137,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return getDelegate().getUserByName(username); } @@ -129,6 +154,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -137,7 +163,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return getDelegate().loginUser(username, password); } @@ -147,6 +181,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -167,6 +202,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -174,7 +210,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Animal.java index 1319038cccc0..8dd1dd124d3a 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java index c7912d432b77..db1677b34480 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java index aba5eb47270c..7c043481d96e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java index 5f44cab5669e..16bbedb032d9 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0fa0742fe83a..d635341d20a4 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -47,7 +48,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index e985e37bc09e..2e8fd58f6138 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -46,6 +46,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -55,7 +56,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,6 +73,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -77,7 +83,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -90,6 +100,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -99,7 +110,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -121,6 +136,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -130,7 +146,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -143,6 +163,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -152,7 +173,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -165,6 +190,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -174,7 +200,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -187,6 +217,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -196,7 +227,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -209,6 +248,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -219,7 +259,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -255,6 +299,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -268,7 +313,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,6 +388,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -299,7 +401,31 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -315,6 +441,7 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Query paramet * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @@ -325,7 +452,23 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Query paramet @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,6 +480,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -346,7 +490,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,6 +507,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -368,7 +517,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -385,6 +542,7 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -393,7 +551,27 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -407,6 +585,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -421,7 +600,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 3d7f2e2ea285..6195cb5875db 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -50,7 +51,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java index 209a72ff9778..17a38b3545f5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -53,7 +54,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +71,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -80,7 +86,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +104,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -108,7 +119,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -137,6 +152,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -151,7 +167,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -180,6 +200,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -194,7 +215,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -223,6 +248,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -239,7 +265,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -253,6 +283,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -266,7 +297,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -280,6 +323,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -294,7 +338,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java index 94057aa6fc58..6c4e87f692dd 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -48,7 +49,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -60,6 +65,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -87,6 +93,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -98,7 +105,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -125,6 +136,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -135,7 +147,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java index b60e3580cf6b..f23777f09c6f 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java @@ -38,6 +38,7 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -46,7 +47,11 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +63,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -66,7 +72,11 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,6 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -86,7 +97,11 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -100,6 +115,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -109,7 +125,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -123,6 +143,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -134,7 +155,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -162,6 +187,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -172,7 +198,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -183,6 +217,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -206,6 +241,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -215,7 +251,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Animal.java index 1319038cccc0..8dd1dd124d3a 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java index c7912d432b77..db1677b34480 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java index aba5eb47270c..7c043481d96e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java index 5f44cab5669e..16bbedb032d9 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java index eea35ce51b89..1293ca15e4ce 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -15,7 +15,6 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.http.codec.multipart.Part; -import springfox.documentation.annotations.ApiIgnore; import javax.validation.Valid; import javax.validation.constraints.*; @@ -37,6 +36,7 @@ default AnotherFakeApiDelegate getDelegate() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -45,7 +45,11 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().call123testSpecialTags(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index 33228158d4d3..7c221a01f5a0 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -24,7 +24,6 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.http.codec.multipart.Part; -import springfox.documentation.annotations.ApiIgnore; import javax.validation.Valid; import javax.validation.constraints.*; @@ -46,6 +45,7 @@ default FakeApiDelegate getDelegate() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -53,7 +53,11 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default Mono> createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody Mono xmlItem, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody Mono xmlItem +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createXmlItem(xmlItem, exchange); } @@ -65,6 +69,7 @@ default Mono> createXmlItem(@ApiParam(value = "XmlItem Body * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -72,7 +77,11 @@ default Mono> createXmlItem(@ApiParam(value = "XmlItem Body value = "/fake/outer/boolean", produces = { "*/*" } ) - default Mono> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterBooleanSerialize(body, exchange); } @@ -84,6 +93,7 @@ default Mono> fakeOuterBooleanSerialize(@ApiParam(value * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -91,7 +101,11 @@ default Mono> fakeOuterBooleanSerialize(@ApiParam(value value = "/fake/outer/composite", produces = { "*/*" } ) - default Mono> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterCompositeSerialize(body, exchange); } @@ -103,6 +117,7 @@ default Mono> fakeOuterCompositeSerialize(@ApiPar * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -110,7 +125,11 @@ default Mono> fakeOuterCompositeSerialize(@ApiPar value = "/fake/outer/number", produces = { "*/*" } ) - default Mono> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterNumberSerialize(body, exchange); } @@ -122,6 +141,7 @@ default Mono> fakeOuterNumberSerialize(@ApiParam(valu * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -129,7 +149,11 @@ default Mono> fakeOuterNumberSerialize(@ApiParam(valu value = "/fake/outer/string", produces = { "*/*" } ) - default Mono> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterStringSerialize(body, exchange); } @@ -141,6 +165,7 @@ default Mono> fakeOuterStringSerialize(@ApiParam(value = * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -148,7 +173,11 @@ default Mono> fakeOuterStringSerialize(@ApiParam(value = value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default Mono> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithFileSchema(body, exchange); } @@ -160,6 +189,7 @@ default Mono> testBodyWithFileSchema(@ApiParam(value = "" , * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -167,7 +197,15 @@ default Mono> testBodyWithFileSchema(@ApiParam(value = "" , value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithQueryParams(query, body, exchange); } @@ -179,6 +217,7 @@ default Mono> testBodyWithQueryParams(@NotNull @ApiParam(va * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -187,7 +226,11 @@ default Mono> testBodyWithQueryParams(@NotNull @ApiParam(va produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClientModel(body, exchange); } @@ -213,6 +256,7 @@ default Mono> testClientModel(@ApiParam(value = "client m * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -224,7 +268,63 @@ default Mono> testClientModel(@ApiParam(value = "client m value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, exchange); } @@ -244,6 +344,7 @@ default Mono> testEndpointParameters(@ApiParam(value = "Non * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -252,7 +353,39 @@ default Mono> testEndpointParameters(@ApiParam(value = "Non value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, exchange); } @@ -269,13 +402,38 @@ default Mono> testEnumParameters(@ApiParam(value = "Header * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, exchange); } @@ -286,6 +444,7 @@ default Mono> testGroupParameters(@NotNull @ApiParam(value * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -293,7 +452,11 @@ default Mono> testGroupParameters(@NotNull @ApiParam(value value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default Mono> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono> param, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono> param +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testInlineAdditionalProperties(param, exchange); } @@ -305,6 +468,7 @@ default Mono> testInlineAdditionalProperties(@ApiParam(valu * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -312,7 +476,15 @@ default Mono> testInlineAdditionalProperties(@ApiParam(valu value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testJsonFormData(param, param2, exchange); } @@ -328,13 +500,34 @@ default Mono> testJsonFormData(@ApiParam(value = "field1", * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, exchange); } @@ -347,6 +540,7 @@ default Mono> testQueryParameterCollectionFormat(@NotNull @ * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -359,7 +553,19 @@ default Mono> testQueryParameterCollectionFormat(@NotNull @ produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 15b48f22a526..fab6467598fd 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -15,7 +15,6 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.http.codec.multipart.Part; -import springfox.documentation.annotations.ApiIgnore; import javax.validation.Valid; import javax.validation.constraints.*; @@ -37,6 +36,7 @@ default FakeClassnameTestApiDelegate getDelegate() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -48,7 +48,11 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClassname(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java index 41ed1eeccd35..c62af35acc7b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java @@ -17,7 +17,6 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.http.codec.multipart.Part; -import springfox.documentation.annotations.ApiIgnore; import javax.validation.Valid; import javax.validation.constraints.*; @@ -39,6 +38,7 @@ default PetApiDelegate getDelegate() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -51,7 +51,11 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().addPet(body, exchange); } @@ -64,6 +68,7 @@ default Mono> addPet(@ApiParam(value = "Pet object that nee * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -75,7 +80,15 @@ default Mono> addPet(@ApiParam(value = "Pet object that nee @DeleteMapping( value = "/pet/{petId}" ) - default Mono> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deletePet(petId, apiKey, exchange); } @@ -88,6 +101,7 @@ default Mono> deletePet(@ApiParam(value = "Pet id to delete * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -100,7 +114,11 @@ default Mono> deletePet(@ApiParam(value = "Pet id to delete value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByStatus(status, exchange); } @@ -114,6 +132,7 @@ default Mono>> findPetsByStatus(@NotNull @ApiParam(valu * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -126,7 +145,11 @@ default Mono>> findPetsByStatus(@NotNull @ApiParam(valu value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags, @ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByTags(tags, exchange); } @@ -140,6 +163,7 @@ default Mono>> findPetsByTags(@NotNull @ApiParam(value * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -152,7 +176,11 @@ default Mono>> findPetsByTags(@NotNull @ApiParam(value value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default Mono> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getPetById(petId, exchange); } @@ -166,6 +194,7 @@ default Mono> getPetById(@ApiParam(value = "ID of pet to ret * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -180,7 +209,11 @@ default Mono> getPetById(@ApiParam(value = "ID of pet to ret value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePet(body, exchange); } @@ -193,6 +226,7 @@ default Mono> updatePet(@ApiParam(value = "Pet object that * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -204,7 +238,19 @@ default Mono> updatePet(@ApiParam(value = "Pet object that value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePetWithForm(petId, name, status, exchange); } @@ -217,6 +263,7 @@ default Mono> updatePetWithForm(@ApiParam(value = "ID of pe * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -229,7 +276,19 @@ default Mono> updatePetWithForm(@ApiParam(value = "ID of pe produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFile(petId, additionalMetadata, file, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java index 520c688e3fa4..c94424f2ae14 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java @@ -16,7 +16,6 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.http.codec.multipart.Part; -import springfox.documentation.annotations.ApiIgnore; import javax.validation.Valid; import javax.validation.constraints.*; @@ -39,6 +38,7 @@ default StoreApiDelegate getDelegate() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +46,11 @@ default StoreApiDelegate getDelegate() { @DeleteMapping( value = "/store/order/{order_id}" ) - default Mono> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteOrder(orderId, exchange); } @@ -57,6 +61,7 @@ default Mono> deleteOrder(@ApiParam(value = "ID of the orde * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -81,6 +86,7 @@ default Mono>> getInventory(@ApiIgnore final * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -90,7 +96,11 @@ default Mono>> getInventory(@ApiIgnore final value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getOrderById(orderId, exchange); } @@ -102,6 +112,7 @@ default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(val * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -110,7 +121,11 @@ default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(val value = "/store/order", produces = { "application/xml", "application/json" } ) - default Mono> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().placeOrder(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java index 2f3e0a55c9bd..f670c010cd4b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java @@ -16,7 +16,6 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.http.codec.multipart.Part; -import springfox.documentation.annotations.ApiIgnore; import javax.validation.Valid; import javax.validation.constraints.*; @@ -38,13 +37,18 @@ default UserApiDelegate getDelegate() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default Mono> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUser(body, exchange); } @@ -55,13 +59,18 @@ default Mono> createUser(@ApiParam(value = "Created user ob * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default Mono> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithArrayInput(body, exchange); } @@ -72,13 +81,18 @@ default Mono> createUsersWithArrayInput(@ApiParam(value = " * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default Mono> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithListInput(body, exchange); } @@ -91,6 +105,7 @@ default Mono> createUsersWithListInput(@ApiParam(value = "L * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -98,7 +113,11 @@ default Mono> createUsersWithListInput(@ApiParam(value = "L @DeleteMapping( value = "/user/{username}" ) - default Mono> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteUser(username, exchange); } @@ -111,6 +130,7 @@ default Mono> deleteUser(@ApiParam(value = "The name that n * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -120,7 +140,11 @@ default Mono> deleteUser(@ApiParam(value = "The name that n value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default Mono> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getUserByName(username, exchange); } @@ -133,6 +157,7 @@ default Mono> getUserByName(@ApiParam(value = "The name tha * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -141,7 +166,15 @@ default Mono> getUserByName(@ApiParam(value = "The name tha value = "/user/login", produces = { "application/xml", "application/json" } ) - default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password, @ApiIgnore final ServerWebExchange exchange) { + default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().loginUser(username, password, exchange); } @@ -151,6 +184,7 @@ default Mono> loginUser(@NotNull @ApiParam(value = "The u * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -171,6 +205,7 @@ default Mono> logoutUser(@ApiIgnore final ServerWebExchange * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -178,7 +213,15 @@ default Mono> logoutUser(@ApiIgnore final ServerWebExchange @PutMapping( value = "/user/{username}" ) - default Mono> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updateUser(username, body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Animal.java index 1319038cccc0..8dd1dd124d3a 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java index c7912d432b77..db1677b34480 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java index aba5eb47270c..7c043481d96e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java index 5f44cab5669e..16bbedb032d9 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index dfae7d61930c..683ef66fdd0b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -29,6 +29,7 @@ public interface AnotherFakeApi { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -37,6 +38,10 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 82d2ed7cec00..d2397089c859 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -39,7 +39,11 @@ public AnotherFakeApiController(@org.springframework.beans.factory.annotation.Au * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return delegate.call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 54e73fc876d0..601ff0931412 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -38,6 +38,7 @@ public interface FakeApi { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -45,7 +46,11 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +); /** @@ -55,6 +60,7 @@ public interface FakeApi { * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -62,7 +68,11 @@ public interface FakeApi { value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +); /** @@ -72,6 +82,7 @@ public interface FakeApi { * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -79,7 +90,11 @@ public interface FakeApi { value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +); /** @@ -89,6 +104,7 @@ public interface FakeApi { * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -96,7 +112,11 @@ public interface FakeApi { value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +); /** @@ -106,6 +126,7 @@ public interface FakeApi { * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -113,7 +134,11 @@ public interface FakeApi { value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +); /** @@ -123,6 +148,7 @@ public interface FakeApi { * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -130,7 +156,11 @@ public interface FakeApi { value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +); /** @@ -140,6 +170,7 @@ public interface FakeApi { * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -147,7 +178,15 @@ public interface FakeApi { value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +); /** @@ -157,6 +196,7 @@ public interface FakeApi { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -165,7 +205,11 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); /** @@ -189,6 +233,7 @@ public interface FakeApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = { @Authorization(value = "http_basic_test") @@ -200,7 +245,63 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -218,6 +319,7 @@ public interface FakeApi { * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -226,7 +328,39 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -241,13 +375,38 @@ public interface FakeApi { * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +); /** @@ -256,6 +415,7 @@ public interface FakeApi { * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -263,7 +423,11 @@ public interface FakeApi { value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +); /** @@ -273,6 +437,7 @@ public interface FakeApi { * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -280,7 +445,15 @@ public interface FakeApi { value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -294,13 +467,34 @@ public interface FakeApi { * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +); /** @@ -311,6 +505,7 @@ public interface FakeApi { * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -323,6 +518,18 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 6e088985cf24..5bf25bc8db21 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -48,7 +48,11 @@ public FakeApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return delegate.createXmlItem(xmlItem); } @@ -60,7 +64,11 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return delegate.fakeOuterBooleanSerialize(body); } @@ -72,7 +80,11 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return delegate.fakeOuterCompositeSerialize(body); } @@ -84,7 +96,11 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return delegate.fakeOuterNumberSerialize(body); } @@ -96,7 +112,11 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return delegate.fakeOuterStringSerialize(body); } @@ -108,7 +128,11 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return delegate.testBodyWithFileSchema(body); } @@ -120,7 +144,15 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return delegate.testBodyWithQueryParams(query, body); } @@ -132,7 +164,11 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return delegate.testClientModel(body); } @@ -158,7 +194,63 @@ public ResponseEntity testClientModel(@ApiParam(value = "client model" , * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return delegate.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -178,7 +270,39 @@ public ResponseEntity testEndpointParameters(@ApiParam(value = "None", req * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -195,7 +319,31 @@ public ResponseEntity testEnumParameters(@ApiParam(value = "Header paramet * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -206,7 +354,11 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return delegate.testInlineAdditionalProperties(param); } @@ -218,7 +370,15 @@ public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "re * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return delegate.testJsonFormData(param, param2); } @@ -234,7 +394,27 @@ public ResponseEntity testJsonFormData(@ApiParam(value = "field1", require * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -247,7 +427,19 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return delegate.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index d2215dd0d1be..f07f330318ca 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -29,6 +29,7 @@ public interface FakeClassnameTestApi { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -40,6 +41,10 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 5e208f64c750..ffd138d85e3c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -39,7 +39,11 @@ public FakeClassnameTestApiController(@org.springframework.beans.factory.annotat * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return delegate.testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java index dcdb633acf62..6229df9e3d01 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -30,6 +30,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -42,7 +43,11 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -53,6 +58,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -64,7 +70,15 @@ public interface PetApi { @DeleteMapping( value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -75,6 +89,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -87,7 +102,11 @@ public interface PetApi { value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable); /** @@ -99,6 +118,7 @@ public interface PetApi { * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -111,7 +131,11 @@ public interface PetApi { value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable); /** @@ -123,6 +147,7 @@ public interface PetApi { * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -135,7 +160,11 @@ public interface PetApi { value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -147,6 +176,7 @@ public interface PetApi { * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -161,7 +191,11 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -172,6 +206,7 @@ public interface PetApi { * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -183,7 +218,19 @@ public interface PetApi { value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -194,6 +241,7 @@ public interface PetApi { * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -206,6 +254,18 @@ public interface PetApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java index 04c2d70b8754..9a7881a1d56f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -40,7 +40,11 @@ public PetApiController(@org.springframework.beans.factory.annotation.Autowired( * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return delegate.addPet(body); } @@ -53,7 +57,15 @@ public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to b * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + public ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return delegate.deletePet(petId, apiKey); } @@ -66,7 +78,11 @@ public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requi * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable) { return delegate.findPetsByStatus(status, pageable); } @@ -80,7 +96,11 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable) { return delegate.findPetsByTags(tags, pageable); } @@ -94,7 +114,11 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + public ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return delegate.getPetById(petId); } @@ -108,7 +132,11 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",re * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return delegate.updatePet(body); } @@ -121,7 +149,19 @@ public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs t * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return delegate.updatePetWithForm(petId, name, status); } @@ -134,7 +174,19 @@ public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return delegate.uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java index 69c047f7c677..974a6cd1773f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -31,6 +31,7 @@ public interface StoreApi { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -38,7 +39,11 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); + ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +); /** @@ -47,6 +52,7 @@ public interface StoreApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -69,6 +75,7 @@ public interface StoreApi { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -78,7 +85,11 @@ public interface StoreApi { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); + ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +); /** @@ -88,6 +99,7 @@ public interface StoreApi { * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -96,6 +108,10 @@ public interface StoreApi { value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index e52670dc35de..19236d0e2a7c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -41,7 +41,11 @@ public StoreApiController(@org.springframework.beans.factory.annotation.Autowire * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + public ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return delegate.deleteOrder(orderId); } @@ -66,7 +70,11 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + public ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return delegate.getOrderById(orderId); } @@ -78,7 +86,11 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return delegate.placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java index 972cc8bc4682..463ac44f37e1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -30,13 +30,18 @@ public interface UserApi { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -45,13 +50,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -60,13 +70,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -77,6 +92,7 @@ public interface UserApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -84,7 +100,11 @@ public interface UserApi { @DeleteMapping( value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -95,6 +115,7 @@ public interface UserApi { * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -104,7 +125,11 @@ public interface UserApi { value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -115,6 +140,7 @@ public interface UserApi { * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -123,7 +149,15 @@ public interface UserApi { value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -131,6 +165,7 @@ public interface UserApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -149,6 +184,7 @@ public interface UserApi { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -156,6 +192,14 @@ public interface UserApi { @PutMapping( value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java index d2f4ce3ee208..e02da9575370 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -40,7 +40,11 @@ public UserApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return delegate.createUser(body); } @@ -51,7 +55,11 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object" , * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return delegate.createUsersWithArrayInput(body); } @@ -62,7 +70,11 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return delegate.createUsersWithListInput(body); } @@ -75,7 +87,11 @@ public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + public ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return delegate.deleteUser(username); } @@ -88,7 +104,11 @@ public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + public ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return delegate.getUserByName(username); } @@ -101,7 +121,15 @@ public ResponseEntity getUserByName(@ApiParam(value = "The name that needs * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return delegate.loginUser(username, password); } @@ -125,7 +153,15 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return delegate.updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..147d849cc922 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..ce9bcaa68676 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..737ad7c564e0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 1e2c8c2726d3..77bfe745257a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,9 +14,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..e56d7f7ea32f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a8cf838ca3d3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..33e651eac438 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..161b9ab6b6c5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Animal.java index 7fb6b8e2ef66..9ee335089250 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 9c226efbbc46..cf01705a29f4 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 51ea58aab386..d93dbea2ce9c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java index 1fea247ab3ca..c38412c8bd8e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..2518307f8ea8 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java index b32ade551792..6f18222633a5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..c2d836507b58 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java index c79594679cf8..2c8bf7c0a319 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..4d88c1e45a8e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,6 +10,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java index 727896658637..917f4bc7bf35 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..704c61072736 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..fa8d5ee70fd0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java index 90d7bf130bb1..b0d6cf4a164b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..ed676c3662e1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,17 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..d1569ee7cc88 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index a99196c28084..81e4947052c3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java index dedb11fe758b..fd984d48eaf4 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,9 +15,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..b13079273ed7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java index b1d48c044ada..a30642ec1306 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,9 +14,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 71693227fa7a..ad2c7a9c08fd 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,9 +16,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..8e51dc7b0bf5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,6 +10,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..956f91cbb977 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..f71f60f59709 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,6 +10,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..8336bed2c940 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,6 +10,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..dd16633227ae 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java index 06a8fdb89353..c864f06e391a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..93aec9d2daa0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..33f64f0954e6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,17 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java index 94dfc109a57d..85f81063494f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,9 +15,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..d60fdad1bf7b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..460c28d4b255 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..6fe98fc604cd 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index bcf00b393fd4..482eb19494a1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 2151f844f8ed..04f71a018150 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..c44a870bc050 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java index 9240d5345a67..8c3f59ee846b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java index f4afb63f6185..1b9e93b2dfd0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -33,6 +33,7 @@ default AnotherFakeApiDelegate getDelegate() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -41,7 +42,11 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index 02a920c8bf8b..bbca0e006ed7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -42,6 +42,7 @@ default FakeApiDelegate getDelegate() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -49,7 +50,11 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return getDelegate().createXmlItem(xmlItem); } @@ -61,6 +66,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -68,7 +74,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -80,6 +90,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -87,7 +98,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -99,6 +114,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -106,7 +122,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -118,6 +138,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -125,7 +146,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return getDelegate().fakeOuterStringSerialize(body); } @@ -137,6 +162,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -144,7 +170,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return getDelegate().testBodyWithFileSchema(body); } @@ -156,6 +186,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -163,7 +194,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -175,6 +214,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -183,7 +223,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClientModel(body); } @@ -209,6 +253,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = { @Authorization(value = "http_basic_test") @@ -220,7 +265,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -240,6 +341,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -248,7 +350,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -265,13 +399,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -282,6 +441,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -289,7 +449,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return getDelegate().testInlineAdditionalProperties(param); } @@ -301,6 +465,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -308,7 +473,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -324,13 +497,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -343,6 +537,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -355,7 +550,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 572b49ba2a94..e9757bbcb1c1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -33,6 +33,7 @@ default FakeClassnameTestApiDelegate getDelegate() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -44,7 +45,11 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java index 0e5bdeffced3..dd661ebdc2e7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java @@ -34,6 +34,7 @@ default PetApiDelegate getDelegate() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -46,7 +47,11 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().addPet(body); } @@ -59,6 +64,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -70,7 +76,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return getDelegate().deletePet(petId, apiKey); } @@ -83,6 +97,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -95,7 +110,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable) { return getDelegate().findPetsByStatus(status, pageable); } @@ -109,6 +128,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -121,7 +141,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable) { return getDelegate().findPetsByTags(tags, pageable); } @@ -135,6 +159,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -147,7 +172,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return getDelegate().getPetById(petId); } @@ -161,6 +190,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -175,7 +205,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().updatePet(body); } @@ -188,6 +222,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -199,7 +234,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -212,6 +259,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -224,7 +272,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java index 05cfb8f5758a..9e88807de925 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java @@ -35,6 +35,7 @@ default StoreApiDelegate getDelegate() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -42,7 +43,11 @@ default StoreApiDelegate getDelegate() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return getDelegate().deleteOrder(orderId); } @@ -53,6 +58,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -77,6 +83,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -86,7 +93,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return getDelegate().getOrderById(orderId); } @@ -98,6 +109,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -106,7 +118,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java index 5b3512235937..65791557210c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java @@ -34,13 +34,18 @@ default UserApiDelegate getDelegate() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().createUser(body); } @@ -51,13 +56,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithArrayInput(body); } @@ -68,13 +78,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithListInput(body); } @@ -87,6 +102,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -94,7 +110,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return getDelegate().deleteUser(username); } @@ -107,6 +127,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -116,7 +137,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return getDelegate().getUserByName(username); } @@ -129,6 +154,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -137,7 +163,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return getDelegate().loginUser(username, password); } @@ -147,6 +181,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -167,6 +202,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -174,7 +210,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Animal.java index 7fb6b8e2ef66..3fd8af44b1d3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java index 289be8925e1b..16cd1e6e7e5d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index dfae7d61930c..683ef66fdd0b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -29,6 +29,7 @@ public interface AnotherFakeApi { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -37,6 +38,10 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 2e0af3fc11b8..cad46630a33e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -41,7 +41,11 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 54e73fc876d0..601ff0931412 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -38,6 +38,7 @@ public interface FakeApi { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -45,7 +46,11 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +); /** @@ -55,6 +60,7 @@ public interface FakeApi { * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -62,7 +68,11 @@ public interface FakeApi { value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +); /** @@ -72,6 +82,7 @@ public interface FakeApi { * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -79,7 +90,11 @@ public interface FakeApi { value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +); /** @@ -89,6 +104,7 @@ public interface FakeApi { * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -96,7 +112,11 @@ public interface FakeApi { value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +); /** @@ -106,6 +126,7 @@ public interface FakeApi { * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -113,7 +134,11 @@ public interface FakeApi { value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +); /** @@ -123,6 +148,7 @@ public interface FakeApi { * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -130,7 +156,11 @@ public interface FakeApi { value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +); /** @@ -140,6 +170,7 @@ public interface FakeApi { * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -147,7 +178,15 @@ public interface FakeApi { value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +); /** @@ -157,6 +196,7 @@ public interface FakeApi { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -165,7 +205,11 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); /** @@ -189,6 +233,7 @@ public interface FakeApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = { @Authorization(value = "http_basic_test") @@ -200,7 +245,63 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -218,6 +319,7 @@ public interface FakeApi { * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -226,7 +328,39 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -241,13 +375,38 @@ public interface FakeApi { * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +); /** @@ -256,6 +415,7 @@ public interface FakeApi { * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -263,7 +423,11 @@ public interface FakeApi { value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +); /** @@ -273,6 +437,7 @@ public interface FakeApi { * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -280,7 +445,15 @@ public interface FakeApi { value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -294,13 +467,34 @@ public interface FakeApi { * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +); /** @@ -311,6 +505,7 @@ public interface FakeApi { * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -323,6 +518,18 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 371d378c18f4..68623a815e1a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -50,7 +50,11 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,7 +67,11 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -76,7 +84,11 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -96,7 +108,11 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -109,7 +125,11 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -122,7 +142,11 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,7 +159,15 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -148,7 +180,11 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -182,7 +218,63 @@ public ResponseEntity testClientModel(@ApiParam(value = "client model" , * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -203,7 +295,39 @@ public ResponseEntity testEndpointParameters(@ApiParam(value = "None", req * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -221,7 +345,31 @@ public ResponseEntity testEnumParameters(@ApiParam(value = "Header paramet * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -233,7 +381,11 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -246,7 +398,15 @@ public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "re * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -263,7 +423,27 @@ public ResponseEntity testJsonFormData(@ApiParam(value = "field1", require * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -277,7 +457,19 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index d2215dd0d1be..f07f330318ca 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -29,6 +29,7 @@ public interface FakeClassnameTestApi { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -40,6 +41,10 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index bf34d83297ee..6e326ba96237 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -41,7 +41,11 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java index dcdb633acf62..6229df9e3d01 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -30,6 +30,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -42,7 +43,11 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -53,6 +58,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -64,7 +70,15 @@ public interface PetApi { @DeleteMapping( value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -75,6 +89,7 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -87,7 +102,11 @@ public interface PetApi { value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable); /** @@ -99,6 +118,7 @@ public interface PetApi { * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -111,7 +131,11 @@ public interface PetApi { value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable); /** @@ -123,6 +147,7 @@ public interface PetApi { * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -135,7 +160,11 @@ public interface PetApi { value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -147,6 +176,7 @@ public interface PetApi { * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -161,7 +191,11 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -172,6 +206,7 @@ public interface PetApi { * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -183,7 +218,19 @@ public interface PetApi { value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -194,6 +241,7 @@ public interface PetApi { * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -206,6 +254,18 @@ public interface PetApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java index 764063efcaeb..e3c3878ecbad 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -42,7 +42,11 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,7 +60,15 @@ public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to b * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + public ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -70,7 +82,11 @@ public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requi * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -97,7 +113,11 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -124,7 +144,11 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + public ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -151,7 +175,11 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",re * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -165,7 +193,19 @@ public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs t * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +219,19 @@ public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java index 69c047f7c677..974a6cd1773f 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -31,6 +31,7 @@ public interface StoreApi { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -38,7 +39,11 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); + ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +); /** @@ -47,6 +52,7 @@ public interface StoreApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -69,6 +75,7 @@ public interface StoreApi { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -78,7 +85,11 @@ public interface StoreApi { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); + ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +); /** @@ -88,6 +99,7 @@ public interface StoreApi { * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -96,6 +108,10 @@ public interface StoreApi { value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index 4f0f16bb9b71..833ece720826 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -43,7 +43,11 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + public ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -70,7 +74,11 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + public ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -95,7 +103,11 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java index 972cc8bc4682..463ac44f37e1 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -30,13 +30,18 @@ public interface UserApi { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -45,13 +50,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -60,13 +70,18 @@ public interface UserApi { * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -77,6 +92,7 @@ public interface UserApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -84,7 +100,11 @@ public interface UserApi { @DeleteMapping( value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -95,6 +115,7 @@ public interface UserApi { * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -104,7 +125,11 @@ public interface UserApi { value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -115,6 +140,7 @@ public interface UserApi { * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -123,7 +149,15 @@ public interface UserApi { value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -131,6 +165,7 @@ public interface UserApi { * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -149,6 +184,7 @@ public interface UserApi { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -156,6 +192,14 @@ public interface UserApi { @PutMapping( value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java index 94ea640fd226..5a85b48d7d4c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -42,7 +42,11 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -54,7 +58,11 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object" , * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,7 +74,11 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -80,7 +92,11 @@ public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + public ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,7 +110,11 @@ public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + public ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -120,7 +140,15 @@ public ResponseEntity getUserByName(@ApiParam(value = "The name that needs * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,7 +174,15 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..147d849cc922 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..ce9bcaa68676 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..737ad7c564e0 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 1e2c8c2726d3..77bfe745257a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,9 +14,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..e56d7f7ea32f 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a8cf838ca3d3 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..33e651eac438 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..161b9ab6b6c5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Animal.java index 7fb6b8e2ef66..9ee335089250 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 9c226efbbc46..cf01705a29f4 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 51ea58aab386..d93dbea2ce9c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java index 1fea247ab3ca..c38412c8bd8e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..2518307f8ea8 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java index b32ade551792..6f18222633a5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..c2d836507b58 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java index c79594679cf8..2c8bf7c0a319 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..4d88c1e45a8e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,6 +10,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java index 727896658637..917f4bc7bf35 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..704c61072736 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..fa8d5ee70fd0 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java index 90d7bf130bb1..b0d6cf4a164b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..ed676c3662e1 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,17 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..d1569ee7cc88 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index a99196c28084..81e4947052c3 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java index dedb11fe758b..fd984d48eaf4 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,9 +15,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..b13079273ed7 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java index b1d48c044ada..a30642ec1306 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,9 +14,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 71693227fa7a..ad2c7a9c08fd 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,9 +16,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..8e51dc7b0bf5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,6 +10,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..956f91cbb977 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..f71f60f59709 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,6 +10,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..8336bed2c940 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,6 +10,9 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..dd16633227ae 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java index 06a8fdb89353..c864f06e391a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,9 +12,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..93aec9d2daa0 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,9 +11,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..33f64f0954e6 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,17 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java index 94dfc109a57d..85f81063494f 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,9 +15,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..d60fdad1bf7b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..460c28d4b255 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..6fe98fc604cd 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index bcf00b393fd4..482eb19494a1 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 2151f844f8ed..04f71a018150 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..c44a870bc050 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,9 +10,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java index 9240d5345a67..8c3f59ee846b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,9 +13,13 @@ import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 62b5e8c1c9ec..f370ee3ab08b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -45,7 +46,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index b0b57f815bd6..83c979b95681 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -46,6 +46,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -53,7 +54,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +71,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -73,7 +79,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -86,6 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -93,7 +104,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -115,6 +130,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -122,7 +138,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,6 +155,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -142,7 +163,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -155,6 +180,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -162,7 +188,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -175,6 +205,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -182,7 +213,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -195,6 +234,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -203,7 +243,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -239,6 +283,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = { @Authorization(value = "http_basic_test") @@ -250,7 +295,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -271,6 +372,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -279,7 +381,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,13 +431,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -315,6 +474,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -322,7 +482,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -335,6 +499,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -342,7 +507,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,13 +532,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -379,6 +573,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -391,7 +586,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ce5242fa1b93..48757ce3063d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -48,7 +49,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 2e67f9eb6099..17bb23345a84 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -38,6 +38,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -50,7 +51,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -64,6 +69,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -75,7 +81,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -89,6 +103,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -101,7 +116,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -130,6 +149,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -142,7 +162,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -171,6 +195,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -183,7 +208,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -212,6 +241,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -226,7 +256,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -240,6 +274,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -251,7 +286,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -265,6 +312,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -277,7 +325,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index a18ef0803417..88be51eee908 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +47,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +63,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -83,6 +89,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -92,7 +99,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -119,6 +130,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -127,7 +139,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index bdd829c2178f..ce4283bd9370 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -38,13 +38,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,13 +61,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +84,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +109,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -101,7 +117,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -115,6 +135,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -124,7 +145,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -152,6 +177,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -160,7 +186,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,6 +205,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -192,6 +227,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -199,7 +235,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Animal.java index 7fb6b8e2ef66..3fd8af44b1d3 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java index 289be8925e1b..16cd1e6e7e5d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java index 62b5e8c1c9ec..f370ee3ab08b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -45,7 +46,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index 5360eef212b6..cea00688c67e 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -46,6 +46,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -53,7 +54,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +71,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -73,7 +79,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -86,6 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -93,7 +104,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -115,6 +130,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -122,7 +138,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,6 +155,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -142,7 +163,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -155,6 +180,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -162,7 +188,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -175,6 +205,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -182,7 +213,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -195,6 +234,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -203,7 +243,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -239,6 +283,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -250,7 +295,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -271,6 +372,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -279,7 +381,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) Optional> enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) Optional enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") Optional enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) Optional> enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) Optional enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") Optional enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,13 +431,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Optional booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Optional booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -315,6 +474,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -322,7 +482,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -335,6 +499,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -342,7 +507,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,13 +532,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -379,6 +573,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -391,7 +586,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ce5242fa1b93..48757ce3063d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -48,7 +49,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java index 581c9ec1d36f..777d63843eed 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -51,7 +52,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,6 +70,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -76,7 +82,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) Optional apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) Optional apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -90,6 +104,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -102,7 +117,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -131,6 +150,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -143,7 +163,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -172,6 +196,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -184,7 +209,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -213,6 +242,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -227,7 +257,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -241,6 +275,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -252,7 +287,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -266,6 +313,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -278,7 +326,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java index a18ef0803417..88be51eee908 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +47,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +63,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -83,6 +89,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -92,7 +99,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -119,6 +130,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -127,7 +139,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java index bdd829c2178f..ce4283bd9370 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java @@ -38,13 +38,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,13 +61,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +84,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +109,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -101,7 +117,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -115,6 +135,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -124,7 +145,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -152,6 +177,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -160,7 +186,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,6 +205,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -192,6 +227,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -199,7 +235,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Animal.java index 1319038cccc0..8dd1dd124d3a 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java index c7912d432b77..db1677b34480 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java index aba5eb47270c..7c043481d96e 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java index 5f44cab5669e..16bbedb032d9 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java index 5ba806e0898f..5286f8d7abe3 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java @@ -41,6 +41,7 @@ default Optional getRequest() { * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -49,7 +50,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index b3dcb0a94008..268aa316c28a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -50,6 +50,7 @@ default Optional getRequest() { * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -57,7 +58,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,6 +76,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @return Output boolean (status code 200) */ @ApiVirtual + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -78,7 +84,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -92,6 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @return Output composite (status code 200) */ @ApiVirtual + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -99,7 +110,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -122,6 +137,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @return Output number (status code 200) */ @ApiVirtual + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -129,7 +145,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -143,6 +163,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @return Output string (status code 200) */ @ApiVirtual + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -150,7 +171,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -164,6 +189,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) */ @ApiVirtual + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -171,7 +197,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -185,6 +215,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @return Success (status code 200) */ @ApiVirtual + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -192,7 +223,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -206,6 +245,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -214,7 +254,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -251,6 +295,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * or User not found (status code 404) */ @ApiVirtual + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -262,7 +307,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -284,6 +385,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * or Not found (status code 404) */ @ApiVirtual + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -292,7 +394,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -311,13 +445,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @return Someting wrong (status code 400) */ @ApiVirtual + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -330,6 +489,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -337,7 +497,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -351,6 +515,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -358,7 +523,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -376,13 +549,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @return Success (status code 200) */ @ApiVirtual + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -397,6 +591,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -409,7 +604,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java index a963e3199694..b33ee538c895 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java @@ -41,6 +41,7 @@ default Optional getRequest() { * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -52,7 +53,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java index a83c6d8326d2..1a9cece63e1e 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { * or Invalid input (status code 405) */ @ApiVirtual + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -55,7 +56,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -70,6 +75,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * or Invalid pet value (status code 400) */ @ApiVirtual + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -81,7 +87,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -96,6 +110,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * or Invalid status value (status code 400) */ @ApiVirtual + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -108,7 +123,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -138,6 +157,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * @deprecated */ @ApiVirtual + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -150,7 +170,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -180,6 +204,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) */ @ApiVirtual + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -192,7 +217,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -222,6 +251,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Validation exception (status code 405) */ @ApiVirtual + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -236,7 +266,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -251,6 +285,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @return Invalid input (status code 405) */ @ApiVirtual + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -262,7 +297,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -277,6 +324,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -289,7 +337,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java index e9cd51627cd0..40844d8fa0a3 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { * or Order not found (status code 404) */ @ApiVirtual + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -50,7 +51,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,6 +68,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -89,6 +95,7 @@ default ResponseEntity> getInventory() { * or Order not found (status code 404) */ @ApiVirtual + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -98,7 +105,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -126,6 +137,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * or Invalid Order (status code 400) */ @ApiVirtual + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -134,7 +146,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java index d730f7e2ab01..e15f183a302c 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java @@ -42,13 +42,18 @@ default Optional getRequest() { * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,13 +66,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -80,13 +90,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,6 +116,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) */ @ApiVirtual + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -108,7 +124,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -123,6 +143,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or User not found (status code 404) */ @ApiVirtual + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -132,7 +153,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -161,6 +186,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * or Invalid username/password supplied (status code 400) */ @ApiVirtual + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -169,7 +195,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -181,6 +215,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * @return successful operation (status code 200) */ @ApiVirtual + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -203,6 +238,7 @@ default ResponseEntity logoutUser() { * or User not found (status code 404) */ @ApiVirtual + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -210,7 +246,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java index 53912aef870f..e19aafb4b6f0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java index 54c20bff237c..bab70d6539dd 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java index d97294b55522..f088dc1f6adf 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java index cf58358fe5fb..6b79e19fbc18 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesInteger.java index fae7f3537415..ff165d89b844 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java index d794067a8ad7..a176ac3f50ae 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java index 19a1cb20f056..46ee53d5bcc8 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java index b39451f8a75d..de150fabe5c0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Animal.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Animal.java index 8bd774613ef7..98125b3c83e5 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Animal.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfArrayOfNumberOnly.java index 9ae273ba4df7..71743b98a4ef 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java index 796fe05be61e..51bf32b5b320 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java index 2c0996a0f966..01afb5d6fd92 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.virtualan.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java index 6be0905eda70..b55f0c1be2b0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.virtualan.model.BigCatAllOf; import org.openapitools.virtualan.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java index d7809187f581..b9d7411737c7 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java index 203e488e0a7f..29444d11c52e 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java index 52d0d2e40be5..18b9df70726f 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.virtualan.model.Animal; import org.openapitools.virtualan.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java index bd739d710740..88c368b0bea8 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java index f7ee48c86238..bc5ba7b28f27 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java index 6e76f1d4433d..cef8cd8b90a0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java index d67f27ec39c2..743f9a838072 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java index efcab2e2ea06..be1625594a99 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.virtualan.model.Animal; import org.openapitools.virtualan.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java index 3faa1dd56f5c..ad4cc04148a1 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java index e166cf59f7f0..55e641c7422d 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumClass.java index 02adc43755a7..85be2a8ca87e 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java index 20c6df50571f..2141898ecd7a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.virtualan.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java index 561455901aba..c6b979305ef7 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java index d58e787c3684..942b3189cff8 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java index 48053ce06ae8..9163ea6466ff 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java index 015d09ef65cc..92bfd4bdd693 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java index 9ab1502ece7f..e7b0d08f974b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.virtualan.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java index 015d939e4421..d6ee65d5da49 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java index 773ae33fb65b..642b94ca5c7e 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java index 94edc8e28b63..beccd82a057a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java index 93032c7789e0..09c2ff8ded9c 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java index 2701de1414a9..9df7a1337ef2 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java index 6b6992560bbe..cd41c7586ef7 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java index a7e770bcd018..ea6b3a994ec8 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterEnum.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterEnum.java index ef0bba51c505..574ca853a37b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterEnum.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java index bfcbcc446665..f35d71e1100d 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.virtualan.model.Category; import org.openapitools.virtualan.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java index 56fbcc791803..f5407f1df7a6 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java index 8623dccd79ec..2361bbb9c59b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java index 24a53e73c9a2..a05bf60cf76f 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java index cfe55efc337b..fd73c094f937 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java index 9afbf2d5ed8f..0bbe1ea863a2 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java index 35ca0d4cd1cd..88f955c70c87 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java index 7535d477655b..afa5d13aecee 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.virtualan.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java index 62b5e8c1c9ec..f370ee3ab08b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -45,7 +46,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 9c17aee08e3d..51e6e837e08f 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -46,6 +46,7 @@ default Optional getRequest() { * @param xmlItem XmlItem Body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -53,7 +54,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +71,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req * @param body Input boolean as post body (optional) * @return Output boolean (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @@ -73,7 +79,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -86,6 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp * @param body Input composite as post body (optional) * @return Output composite (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @@ -93,7 +104,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -115,6 +130,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val * @param body Input number as post body (optional) * @return Output number (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @@ -122,7 +138,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,6 +155,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I * @param body Input string as post body (optional) * @return Output string (status code 200) */ + @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) @@ -142,7 +163,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -155,6 +180,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -162,7 +188,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -175,6 +205,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir * @param body (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @@ -182,7 +213,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -195,6 +234,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @@ -203,7 +243,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -239,6 +283,7 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @Authorization(value = "http_basic_test") @@ -250,7 +295,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -271,6 +372,7 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re * @return Invalid request (status code 400) * or Not found (status code 404) */ + @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid request"), @@ -279,7 +381,39 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,13 +431,38 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame * @param int64Group Integer in group parameters (optional) * @return Someting wrong (status code 400) */ + @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Someting wrong") }) @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -315,6 +474,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req * @param param request body (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -322,7 +482,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -335,6 +499,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r * @param param2 field2 (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -342,7 +507,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,13 +532,34 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir * @param context (required) * @return Success (status code 200) */ + @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -379,6 +573,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar * @param additionalMetadata Additional data to pass to server (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -391,7 +586,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ce5242fa1b93..48757ce3063d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -37,6 +37,7 @@ default Optional getRequest() { * @param body client model (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = { @Authorization(value = "api_key_query") @@ -48,7 +49,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java index 6c50971728c1..fe7604d0c136 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return successful operation (status code 200) * or Invalid input (status code 405) */ + @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -51,7 +52,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,6 +70,7 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to * @return successful operation (status code 200) * or Invalid pet value (status code 400) */ + @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -76,7 +82,15 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -90,6 +104,7 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ * @return successful operation (status code 200) * or Invalid status value (status code 400) */ + @ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -102,7 +117,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -131,6 +150,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S * or Invalid tag value (status code 400) * @deprecated */ + @ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -143,7 +163,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -172,6 +196,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Invalid ID supplied (status code 400) * or Pet not found (status code 404) */ + @ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = { @Authorization(value = "api_key") @@ -184,7 +209,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -213,6 +242,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r * or Pet not found (status code 404) * or Validation exception (status code 405) */ + @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -227,7 +257,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -241,6 +275,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs * @param status Updated status of the pet (optional) * @return Invalid input (status code 405) */ + @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -252,7 +287,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -266,6 +313,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @param file file to upload (optional) * @return successful operation (status code 200) */ + @ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -278,7 +326,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java index a18ef0803417..88be51eee908 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java @@ -39,6 +39,7 @@ default Optional getRequest() { * @return Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied"), @@ -46,7 +47,11 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,6 +63,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that * * @return successful operation (status code 200) */ + @ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { @Authorization(value = "api_key") @@ -83,6 +89,7 @@ default ResponseEntity> getInventory() { * or Invalid ID supplied (status code 400) * or Order not found (status code 404) */ + @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -92,7 +99,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -119,6 +130,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " * @return successful operation (status code 200) * or Invalid Order (status code 400) */ + @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @@ -127,7 +139,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java index bdd829c2178f..ce4283bd9370 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java @@ -38,13 +38,18 @@ default Optional getRequest() { * @param body Created user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,13 +61,18 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +84,18 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o * @param body List of user object (required) * @return successful operation (status code 200) */ + @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,6 +109,7 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -101,7 +117,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -115,6 +135,7 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t * or Invalid username supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = User.class), @@ -124,7 +145,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -152,6 +177,7 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need * @return successful operation (status code 200) * or Invalid username/password supplied (status code 400) */ + @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = String.class), @@ -160,7 +186,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,6 +205,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na * * @return successful operation (status code 200) */ + @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -192,6 +227,7 @@ default ResponseEntity logoutUser() { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ + @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -199,7 +235,15 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 8c7e00956c3a..feeaf30cce6b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesAnyType */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 864299cf9b28..129b3f4ad511 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesArray */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b445c7bb0d86..bd8bb2d4145d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesBoolean */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 76a9f4e4c256..b8fa14346387 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 089c1edce9d8..8e7a6d877df6 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesInteger */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesInteger extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index f2f8fe6949b0..a0301ffb7203 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesNumber */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index bcca31ee32a2..00defcb52ce1 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesObject */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 829ea052d3e1..f06b1071c5d6 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * AdditionalPropertiesString */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Animal.java index 1319038cccc0..8dd1dd124d3a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Animal.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Animal */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index aec96b23f033..82b6ecec0a78 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 63a657c8dddf..5549a3c0e5f9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayOfNumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java index 2a36629dfc75..1d0e7bb632b3 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.List; import org.openapitools.model.ReadOnlyFirst; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ArrayTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java index c7912d432b77..db1677b34480 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import org.openapitools.model.BigCatAllOf; import org.openapitools.model.Cat; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java index aba5eb47270c..7c043481d96e 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * BigCatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java index 587443bb7667..d4d8acae8d6d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Capitalization */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java index b32ade551792..afaf05c10972 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.CatAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Cat */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java index ce9d21ae5ecb..9368be5acd78 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * CatAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java index c79594679cf8..af160206b7a4 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Category */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java index a462f09a9cb9..af4c74423128 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model with \"_class\" property */ diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java index 727896658637..58b5dae512dd 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Client */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java index 229b97f2a7cb..8243f48344a1 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import org.openapitools.model.Animal; import org.openapitools.model.DogAllOf; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Dog */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java index 29b736410b76..93e06194f769 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * DogAllOf */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java index ec2d4e1ce8b9..8fb776ce6b5f 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumArrays */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumClass.java index ef4719c757f0..8f82b2f78436 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumClass.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets EnumClass diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java index f9b00d90ed5b..ff3d1c068826 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.OuterEnum; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * EnumTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 8e4f8d5d5d9d..d9313145b13d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FileSchemaTestClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java index e894f561fc6e..74779c15374d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -11,12 +12,17 @@ import java.util.Arrays; import java.util.UUID; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * FormatTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 2dd77785ad55..d1336dc7fdd8 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * HasOnlyReadOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java index 7b9a321ecb22..f762b570fb86 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -10,12 +11,17 @@ import java.util.List; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MapTest */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d80573256c63..86180bbdddb3 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -12,12 +13,17 @@ import java.util.UUID; import org.openapitools.model.Animal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * MixedPropertiesAndAdditionalPropertiesClass */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java index 3f2d0da5f331..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name starting with number */ diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ec7ccfe1417..1d50893eba4c 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ModelApiResponse */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java index 5d0c266a148b..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing reserved words */ diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java index 3cc5bf64c066..880351d2843a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java @@ -1,14 +1,19 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Model for testing model name same as property name */ diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java index c1cafb126beb..093396c47263 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * NumberOnly */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java index 0c9dddf85daf..954c8453e20e 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -8,12 +9,17 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Order */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java index 7425f5c75890..9c3d1bb51b2b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -7,12 +8,17 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * OuterComposite */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterEnum.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterEnum.java index 6b5abc576b07..d74006b9d33e 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterEnum.java @@ -1,12 +1,18 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OuterEnum diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java index 5f44cab5669e..16bbedb032d9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +14,17 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Pet */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 6f4a25b65efe..33ca87c658f0 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * ReadOnlyFirst */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java index 16e690b5740f..3e539023d45a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * SpecialModelName */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java index 9306b226ea56..58640d58e0d5 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * Tag */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java index 80788f31612a..4bf371c03785 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderDefault */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java index 963c3c66b57b..bf74d4a98b25 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * TypeHolderExample */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java index 4a0c635f1adb..4b4879bce320 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java @@ -1,17 +1,23 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * User */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java index 465b94b6a88d..2861e970cba5 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java @@ -1,5 +1,6 @@ package org.openapitools.model; +import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -9,12 +10,17 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; + +import java.util.*; + /** * XmlItem */ + @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") From 40e09bc2fe6e129b38bc85881255a458a093bf66 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Tue, 15 Jun 2021 15:47:22 -0400 Subject: [PATCH 03/21] Update with a clean maven install and regenerate samples --- .../src/main/java/org/openapitools/api/PetApi.java | 1 - .../src/main/java/org/openapitools/api/StoreApi.java | 1 - .../src/main/java/org/openapitools/api/UserApi.java | 1 - .../src/main/java/org/openapitools/model/Category.java | 3 --- .../main/java/org/openapitools/model/ModelApiResponse.java | 3 --- .../src/main/java/org/openapitools/model/Order.java | 3 --- .../src/main/java/org/openapitools/model/Pet.java | 3 --- .../src/main/java/org/openapitools/model/Tag.java | 3 --- .../src/main/java/org/openapitools/model/User.java | 3 --- .../src/main/java/org/openapitools/api/PetApi.java | 1 - .../src/main/java/org/openapitools/api/StoreApi.java | 1 - .../src/main/java/org/openapitools/api/UserApi.java | 1 - .../src/main/java/org/openapitools/model/Category.java | 4 ---- .../main/java/org/openapitools/model/ModelApiResponse.java | 4 ---- .../src/main/java/org/openapitools/model/Order.java | 4 ---- .../src/main/java/org/openapitools/model/Pet.java | 4 ---- .../src/main/java/org/openapitools/model/Tag.java | 4 ---- .../src/main/java/org/openapitools/model/User.java | 4 ---- .../src/main/java/org/openapitools/api/PetApi.java | 1 - .../src/main/java/org/openapitools/api/StoreApi.java | 1 - .../src/main/java/org/openapitools/api/UserApi.java | 1 - .../src/main/java/org/openapitools/model/Category.java | 4 ---- .../main/java/org/openapitools/model/ModelApiResponse.java | 4 ---- .../src/main/java/org/openapitools/model/Order.java | 4 ---- .../src/main/java/org/openapitools/model/Pet.java | 4 ---- .../src/main/java/org/openapitools/model/Tag.java | 4 ---- .../src/main/java/org/openapitools/model/User.java | 4 ---- .../src/main/java/org/openapitools/api/PetApi.java | 1 - .../src/main/java/org/openapitools/api/StoreApi.java | 1 - .../src/main/java/org/openapitools/api/UserApi.java | 1 - .../src/main/java/org/openapitools/model/Category.java | 3 --- .../main/java/org/openapitools/model/ModelApiResponse.java | 3 --- .../src/main/java/org/openapitools/model/Order.java | 3 --- .../src/main/java/org/openapitools/model/Pet.java | 3 --- .../src/main/java/org/openapitools/model/Tag.java | 3 --- .../src/main/java/org/openapitools/model/User.java | 3 --- 36 files changed, 96 deletions(-) diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java index b981bb697100..86c4d7f6107a 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java @@ -25,7 +25,6 @@ import java.util.concurrent.CompletableFuture; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "Pet", description = "the Pet API") public interface PetApi { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java index 86465bc03c09..1a41e71e047b 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java @@ -25,7 +25,6 @@ import java.util.concurrent.CompletableFuture; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "Store", description = "the Store API") public interface StoreApi { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java index d060d0acb955..6e3f19e80118 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java @@ -25,7 +25,6 @@ import java.util.concurrent.CompletableFuture; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "User", description = "the User API") public interface UserApi { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java index 5df696a20f9f..f21d835af4da 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java @@ -10,9 +10,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java index 55b0d41ef494..ec1b1b81d6a4 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -10,9 +10,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java index 268c00be5971..2f24cd46851d 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java @@ -12,9 +12,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java index 09fdde2a852f..a1f702f1a72f 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java @@ -15,9 +15,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java index babd5c55f4b4..8e3f67322335 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java @@ -10,9 +10,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java index c3520381a17b..73fcf01b5375 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java @@ -10,9 +10,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java index b4b6ccb54e15..2610cb961664 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -24,7 +24,6 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "Pet", description = "the Pet API") public interface PetApi { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 2ef2878d54d5..8acdec91f1be 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -24,7 +24,6 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "Store", description = "the Store API") public interface StoreApi { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 8fd09f7d3822..b5c1c28de957 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -24,7 +24,6 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "User", description = "the User API") public interface UserApi { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java index e0a60a6c93bc..e2eb32453384 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -6,12 +6,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d5f2e13fed0..2b85999b0175 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -6,12 +6,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java index 92654e6fd09c..fe670efa69ec 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -8,12 +8,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java index aabd2c2cf4c6..0513ffeb0f36 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -11,12 +11,8 @@ import java.util.List; import org.openapitools.model.Category; import org.openapitools.model.Tag; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java index d83ae0023370..e067ae023271 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -6,12 +6,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java index b511217bacd0..062860067243 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java @@ -6,12 +6,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index b4b6ccb54e15..2610cb961664 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -24,7 +24,6 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "Pet", description = "the Pet API") public interface PetApi { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 2ef2878d54d5..8acdec91f1be 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -24,7 +24,6 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "Store", description = "the Store API") public interface StoreApi { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index 8fd09f7d3822..b5c1c28de957 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -24,7 +24,6 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "User", description = "the User API") public interface UserApi { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java index 5df696a20f9f..ae728150a9ee 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java @@ -7,12 +7,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java index 55b0d41ef494..0571fe8a3060 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -7,12 +7,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java index 268c00be5971..6be72e63e33c 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java @@ -9,12 +9,8 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java index 09fdde2a852f..333fb7361372 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java @@ -12,12 +12,8 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java index babd5c55f4b4..e00e21acfced 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java @@ -7,12 +7,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java index c3520381a17b..518401c0b8dc 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java @@ -7,12 +7,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java index cc0a67bc61dd..207b91b75d67 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java @@ -24,7 +24,6 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "pet", description = "the pet API") public interface PetApi { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java index ca8d62c95ec2..040ba596c9fb 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java @@ -24,7 +24,6 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "store", description = "the store API") public interface StoreApi { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java index 082d3df1c6e0..4f93c223928d 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java @@ -24,7 +24,6 @@ import java.util.Optional; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @Validated - @Api(value = "user", description = "the user API") public interface UserApi { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java index 5df696a20f9f..f21d835af4da 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java @@ -10,9 +10,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java index 55b0d41ef494..ec1b1b81d6a4 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -10,9 +10,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java index 268c00be5971..2f24cd46851d 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java @@ -12,9 +12,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java index 09fdde2a852f..a1f702f1a72f 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java @@ -15,9 +15,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java index babd5c55f4b4..8e3f67322335 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java @@ -10,9 +10,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java index c3520381a17b..73fcf01b5375 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java @@ -10,9 +10,6 @@ import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.*; From b603d3435fac466ff52e47da003a505125eff14e Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Tue, 15 Jun 2021 16:03:17 -0400 Subject: [PATCH 04/21] Remove newling at end of param files and regenerate samples --- .../codegen/languages/SpringCodegen.java | 2 + .../resources/JavaSpring/bodyParams.mustache | 2 +- .../JavaSpring/headerParams.mustache | 2 +- .../resources/JavaSpring/pathParams.mustache | 2 +- .../resources/JavaSpring/queryParams.mustache | 2 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/TestHeadersApi.java | 26 +- .../openapitools/api/TestQueryParamsApi.java | 26 +- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../openapitools/api/FakeApiController.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../openapitools/api/PetApiController.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../openapitools/api/UserApiController.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 206 ++-------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 64 +---- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../openapitools/api/FakeApiController.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../openapitools/api/PetApiController.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../openapitools/api/UserApiController.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../openapitools/api/FakeApiController.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../openapitools/api/PetApiController.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../openapitools/api/UserApiController.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../virtualan/api/AnotherFakeApi.java | 6 +- .../openapitools/virtualan/api/FakeApi.java | 222 ++---------------- .../virtualan/api/FakeClassnameTestApi.java | 6 +- .../openapitools/virtualan/api/PetApi.java | 68 +----- .../openapitools/virtualan/api/StoreApi.java | 18 +- .../openapitools/virtualan/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- 148 files changed, 833 insertions(+), 7659 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index ab0f2bed3f7f..fdb9fa9a34a9 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -474,6 +474,8 @@ public void processOpts() { if (this.useSpringfox) { + // if apiFirst or reactive are enabled, then springfox cannot be used. Check if they are active + // before enabling. if (!this.apiFirst && !this.reactive) { additionalProperties.put("useSpringfox", true); } diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache index d7a4f81a61a0..3bd9c8560396 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache @@ -1 +1 @@ -{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues="{{{allowableValues}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} +{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues="{{{allowableValues}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache index 046abd68d7f0..3e5a031f87ca 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache @@ -1 +1 @@ -{{#isHeaderParam}}{{#oas3}}@Parameter(description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues="{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value="{{baseName}}", required={{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} +{{#isHeaderParam}}{{#oas3}}@Parameter(description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues="{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value="{{baseName}}", required={{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache index 4bdd1982f97b..536421d9b8eb 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache @@ -1 +1 @@ -{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{baseName}}", description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaEscapeDoubleQuote}}{{{value}}}{{/lambdaEscapeDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} +{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{baseName}}", description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaEscapeDoubleQuote}}{{{value}}}{{/lambdaEscapeDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache index ee362fcc542b..07844d3248cc 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache @@ -1 +1 @@ -{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} +{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} \ No newline at end of file diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java index 86c4d7f6107a..7dbe3b9e0913 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java @@ -46,11 +46,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - CompletableFuture> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -71,15 +67,7 @@ CompletableFuture> addPet( @DeleteMapping( value = "/pet/{petId}" ) - CompletableFuture> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -103,11 +91,7 @@ CompletableFuture> deletePet( value = "/pet/findByStatus", produces = "application/json" ) - CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -); + CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); /** @@ -132,11 +116,7 @@ CompletableFuture>> findPetsByStatus(@NotNull @ApiParam value = "/pet/findByTags", produces = "application/json" ) - CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -); + CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); /** @@ -161,11 +141,7 @@ CompletableFuture>> findPetsByTags(@NotNull @ApiParam(v value = "/pet/{petId}", produces = "application/json" ) - CompletableFuture> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -190,11 +166,7 @@ CompletableFuture> getPetById( value = "/pet", consumes = "application/json" ) - CompletableFuture> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -217,19 +189,7 @@ CompletableFuture> updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - CompletableFuture> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, - - - -@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -253,18 +213,6 @@ CompletableFuture> updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - CompletableFuture> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java index 1a41e71e047b..8f9b4aed8a7a 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java @@ -44,11 +44,7 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{orderId}" ) - CompletableFuture> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -); + CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); /** @@ -90,11 +86,7 @@ CompletableFuture> deleteOrder( value = "/store/order/{orderId}", produces = "application/json" ) - CompletableFuture> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -); + CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); /** @@ -113,10 +105,6 @@ CompletableFuture> getOrderById( value = "/store/order", produces = "application/json" ) - CompletableFuture> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java index 6e3f19e80118..1d1a2811fdb4 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java @@ -42,11 +42,7 @@ public interface UserApi { @PostMapping( value = "/user" ) - CompletableFuture> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -62,11 +58,7 @@ CompletableFuture> createUser( @PostMapping( value = "/user/createWithArray" ) - CompletableFuture> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -82,11 +74,7 @@ CompletableFuture> createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - CompletableFuture> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -105,11 +93,7 @@ CompletableFuture> createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - CompletableFuture> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -130,11 +114,7 @@ CompletableFuture> deleteUser( value = "/user/{username}", produces = "application/json" ) - CompletableFuture> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -154,15 +134,7 @@ CompletableFuture> getUserByName( value = "/user/login", produces = "application/json" ) - CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -197,14 +169,6 @@ CompletableFuture> loginUser(@NotNull @ApiParam(value = " @PutMapping( value = "/user/{username}" ) - CompletableFuture> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 2610cb961664..4905b912321b 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -45,11 +45,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -70,15 +66,7 @@ com.netflix.hystrix.HystrixCommand> addPet( @DeleteMapping( value = "/pet/{petId}" ) - com.netflix.hystrix.HystrixCommand> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + com.netflix.hystrix.HystrixCommand> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -102,11 +90,7 @@ com.netflix.hystrix.HystrixCommand> deletePet( value = "/pet/findByStatus", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -); + com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); /** @@ -131,11 +115,7 @@ com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@ value = "/pet/findByTags", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -); + com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); /** @@ -160,11 +140,7 @@ com.netflix.hystrix.HystrixCommand>> findPetsByTags(@No value = "/pet/{petId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + com.netflix.hystrix.HystrixCommand> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -189,11 +165,7 @@ com.netflix.hystrix.HystrixCommand> getPetById( value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -216,19 +188,7 @@ com.netflix.hystrix.HystrixCommand> updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - com.netflix.hystrix.HystrixCommand> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, - - - -@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + com.netflix.hystrix.HystrixCommand> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -252,18 +212,6 @@ com.netflix.hystrix.HystrixCommand> updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - com.netflix.hystrix.HystrixCommand> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + com.netflix.hystrix.HystrixCommand> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 8acdec91f1be..e8687704996f 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -43,11 +43,7 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{orderId}" ) - com.netflix.hystrix.HystrixCommand> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -); + com.netflix.hystrix.HystrixCommand> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); /** @@ -89,11 +85,7 @@ com.netflix.hystrix.HystrixCommand> deleteOrder( value = "/store/order/{orderId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -); + com.netflix.hystrix.HystrixCommand> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); /** @@ -112,10 +104,6 @@ com.netflix.hystrix.HystrixCommand> getOrderById( value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java index b5c1c28de957..96be0c972670 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -41,11 +41,7 @@ public interface UserApi { @PostMapping( value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -61,11 +57,7 @@ com.netflix.hystrix.HystrixCommand> createUser( @PostMapping( value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -81,11 +73,7 @@ com.netflix.hystrix.HystrixCommand> createUsersWithArrayInp @PostMapping( value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -104,11 +92,7 @@ com.netflix.hystrix.HystrixCommand> createUsersWithListInpu @DeleteMapping( value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + com.netflix.hystrix.HystrixCommand> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -129,11 +113,7 @@ com.netflix.hystrix.HystrixCommand> deleteUser( value = "/user/{username}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + com.netflix.hystrix.HystrixCommand> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -153,15 +133,7 @@ com.netflix.hystrix.HystrixCommand> getUserByName( value = "/user/login", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -196,14 +168,6 @@ com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @A @PutMapping( value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index c2ee317fa0b1..a6f421105b04 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -45,11 +45,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -70,15 +66,7 @@ ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -102,11 +90,7 @@ ResponseEntity deletePet( value = "/pet/findByStatus", produces = "application/json" ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable); /** @@ -131,11 +115,7 @@ ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status va value = "/pet/findByTags", produces = "application/json" ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable); /** @@ -160,11 +140,7 @@ ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to fil value = "/pet/{petId}", produces = "application/json" ) - ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -189,11 +165,7 @@ ResponseEntity getPetById( value = "/pet", consumes = "application/json" ) - ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -216,19 +188,7 @@ ResponseEntity updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, - - - -@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -252,18 +212,6 @@ ResponseEntity updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 5cdf46b68581..4985b7689b09 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -43,11 +43,7 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{orderId}" ) - ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); /** @@ -89,11 +85,7 @@ ResponseEntity deleteOrder( value = "/store/order/{orderId}", produces = "application/json" ) - ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); /** @@ -112,10 +104,6 @@ ResponseEntity getOrderById( value = "/store/order", produces = "application/json" ) - ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 6171502e1a28..34ef12d67d16 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -41,11 +41,7 @@ public interface UserApi { @PostMapping( value = "/user" ) - ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -61,11 +57,7 @@ ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -81,11 +73,7 @@ ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -104,11 +92,7 @@ ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -129,11 +113,7 @@ ResponseEntity deleteUser( value = "/user/{username}", produces = "application/json" ) - ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -153,15 +133,7 @@ ResponseEntity getUserByName( value = "/user/login", produces = "application/json" ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -196,14 +168,6 @@ ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for l @PutMapping( value = "/user/{username}" ) - ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index 2610cb961664..4905b912321b 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -45,11 +45,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -70,15 +66,7 @@ com.netflix.hystrix.HystrixCommand> addPet( @DeleteMapping( value = "/pet/{petId}" ) - com.netflix.hystrix.HystrixCommand> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + com.netflix.hystrix.HystrixCommand> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -102,11 +90,7 @@ com.netflix.hystrix.HystrixCommand> deletePet( value = "/pet/findByStatus", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -); + com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); /** @@ -131,11 +115,7 @@ com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@ value = "/pet/findByTags", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -); + com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); /** @@ -160,11 +140,7 @@ com.netflix.hystrix.HystrixCommand>> findPetsByTags(@No value = "/pet/{petId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + com.netflix.hystrix.HystrixCommand> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -189,11 +165,7 @@ com.netflix.hystrix.HystrixCommand> getPetById( value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -216,19 +188,7 @@ com.netflix.hystrix.HystrixCommand> updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - com.netflix.hystrix.HystrixCommand> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, - - - -@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + com.netflix.hystrix.HystrixCommand> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -252,18 +212,6 @@ com.netflix.hystrix.HystrixCommand> updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - com.netflix.hystrix.HystrixCommand> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + com.netflix.hystrix.HystrixCommand> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 8acdec91f1be..e8687704996f 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -43,11 +43,7 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{orderId}" ) - com.netflix.hystrix.HystrixCommand> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -); + com.netflix.hystrix.HystrixCommand> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); /** @@ -89,11 +85,7 @@ com.netflix.hystrix.HystrixCommand> deleteOrder( value = "/store/order/{orderId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -); + com.netflix.hystrix.HystrixCommand> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); /** @@ -112,10 +104,6 @@ com.netflix.hystrix.HystrixCommand> getOrderById( value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index b5c1c28de957..96be0c972670 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -41,11 +41,7 @@ public interface UserApi { @PostMapping( value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -61,11 +57,7 @@ com.netflix.hystrix.HystrixCommand> createUser( @PostMapping( value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -81,11 +73,7 @@ com.netflix.hystrix.HystrixCommand> createUsersWithArrayInp @PostMapping( value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -104,11 +92,7 @@ com.netflix.hystrix.HystrixCommand> createUsersWithListInpu @DeleteMapping( value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + com.netflix.hystrix.HystrixCommand> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -129,11 +113,7 @@ com.netflix.hystrix.HystrixCommand> deleteUser( value = "/user/{username}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + com.netflix.hystrix.HystrixCommand> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -153,15 +133,7 @@ com.netflix.hystrix.HystrixCommand> getUserByName( value = "/user/login", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -196,14 +168,6 @@ com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @A @PutMapping( value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java index 207b91b75d67..99e14b0cbb41 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { value = "/pet", consumes = "application/json" ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -77,15 +73,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -112,11 +100,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = "application/json" ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -158,11 +142,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = "application/json" ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -204,11 +184,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = "application/json" ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -250,11 +226,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = "application/json" ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -280,19 +252,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -319,19 +279,7 @@ default ResponseEntity updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java index 040ba596c9fb..37d5bf2c35dc 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{orderId}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,11 +95,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{orderId}", produces = "application/json" ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,11 +131,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = "application/json" ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java index 4f93c223928d..7a07ea75b54e 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java @@ -45,11 +45,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,11 +64,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,11 +129,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = "application/json" ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +166,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = "application/json" ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -235,15 +207,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java index c4fe0acca17a..e0eba6bb600c 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java @@ -51,31 +51,7 @@ default Optional getRequest() { value = "/test-headers", produces = { "application/json" } ) - default ResponseEntity headersTest( - -@ApiParam(value = "" , defaultValue="11.2") @RequestHeader(value="headerNumber", required=false) BigDecimal headerNumber - -, - -@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerString", required=false) String headerString - -, - -@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerStringWrapped", required=false) String headerStringWrapped - -, - -@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotes", required=false) String headerStringQuotes - -, - -@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotesWrapped", required=false) String headerStringQuotesWrapped - -, - -@ApiParam(value = "" , defaultValue="true") @RequestHeader(value="headerBoolean", required=false) Boolean headerBoolean - -) { + default ResponseEntity headersTest(@ApiParam(value = "" , defaultValue="11.2") @RequestHeader(value="headerNumber", required=false) BigDecimal headerNumber,@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerString", required=false) String headerString,@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerStringWrapped", required=false) String headerStringWrapped,@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotes", required=false) String headerStringQuotes,@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotesWrapped", required=false) String headerStringQuotesWrapped,@ApiParam(value = "" , defaultValue="true") @RequestHeader(value="headerBoolean", required=false) Boolean headerBoolean) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java index 56de5a5c6f1c..b64650b6217c 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java @@ -51,31 +51,7 @@ default Optional getRequest() { value = "/test-query-params", produces = { "application/json" } ) - default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue="11.2") BigDecimal queryNumber - - - -,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue="qwerty") String queryString - - - -,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue="qwerty") String queryStringWrapped - - - -,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotes - - - -,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotesWrapped - - - -,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue="true") Boolean queryBoolean - - - -) { + default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue="11.2") BigDecimal queryNumber,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue="qwerty") String queryString,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue="qwerty") String queryStringWrapped,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotes,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotesWrapped,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue="true") Boolean queryBoolean) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java index 70e9ba9457f3..82efa1703d38 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default CompletableFuture> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java index 4f30018bbd3d..5ff7579cbdd2 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java @@ -55,11 +55,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default CompletableFuture> createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default CompletableFuture> createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -80,11 +76,7 @@ default CompletableFuture> createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default CompletableFuture> fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default CompletableFuture> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -105,11 +97,7 @@ default CompletableFuture> fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default CompletableFuture> fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default CompletableFuture> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -141,11 +129,7 @@ default CompletableFuture> fakeOuterCompositeSeri value = "/fake/outer/number", produces = { "*/*" } ) - default CompletableFuture> fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default CompletableFuture> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -166,11 +150,7 @@ default CompletableFuture> fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default CompletableFuture> fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default CompletableFuture> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -191,11 +171,7 @@ default CompletableFuture> fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default CompletableFuture> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -216,15 +192,7 @@ default CompletableFuture> testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -246,11 +214,7 @@ default CompletableFuture> testBodyWithQueryParams(@NotNull produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default CompletableFuture> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -300,63 +264,7 @@ default CompletableFuture> testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default CompletableFuture> testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -386,39 +294,7 @@ default CompletableFuture> testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default CompletableFuture> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -443,31 +319,7 @@ default CompletableFuture> testEnumParameters( @DeleteMapping( value = "/fake" ) - default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -487,11 +339,7 @@ default CompletableFuture> testGroupParameters(@NotNull @Ap value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default CompletableFuture> testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default CompletableFuture> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -512,15 +360,7 @@ default CompletableFuture> testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default CompletableFuture> testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -544,27 +384,7 @@ default CompletableFuture> testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -591,19 +411,7 @@ default CompletableFuture> testQueryParameterCollectionForm produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default CompletableFuture> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 52a8b67143b5..c63c72ad1251 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default CompletableFuture> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java index f34e5df28221..da4ed4dbf708 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java @@ -53,11 +53,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -83,15 +79,7 @@ default CompletableFuture> addPet( @DeleteMapping( value = "/pet/{petId}" ) - default CompletableFuture> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -118,11 +106,7 @@ default CompletableFuture> deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -166,11 +150,7 @@ default CompletableFuture>> findPetsByStatus(@NotNull @ value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -214,11 +194,7 @@ default CompletableFuture>> findPetsByTags(@NotNull @Api value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -264,11 +240,7 @@ default CompletableFuture> getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -294,19 +266,7 @@ default CompletableFuture> updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -333,19 +293,7 @@ default CompletableFuture> updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java index 6300e9f14f26..bdfd517ceb59 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default CompletableFuture> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -100,11 +96,7 @@ default CompletableFuture>> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -142,11 +134,7 @@ default CompletableFuture> getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default CompletableFuture> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java index 97824b434ddd..1eedb80c0dbf 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java @@ -46,11 +46,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default CompletableFuture> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -69,11 +65,7 @@ default CompletableFuture> createUser( @PostMapping( value = "/user/createWithArray" ) - default CompletableFuture> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -92,11 +84,7 @@ default CompletableFuture> createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default CompletableFuture> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -118,11 +106,7 @@ default CompletableFuture> createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default CompletableFuture> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -146,11 +130,7 @@ default CompletableFuture> deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -189,15 +169,7 @@ default CompletableFuture> getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -238,15 +210,7 @@ default CompletableFuture> logoutUser() { @PutMapping( value = "/user/{username}" ) - default CompletableFuture> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java index f370ee3ab08b..a8b3db52f378 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -46,11 +46,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java index d0d32214dd77..733f5e978bc3 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,11 +75,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -138,11 +126,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -163,11 +147,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,11 +168,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -213,15 +189,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,11 +211,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -295,63 +259,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,39 +289,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -438,31 +314,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -482,11 +334,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -507,15 +355,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -539,27 +379,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -586,19 +406,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 48757ce3063d..152dbf4ca7e4 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java index fe7604d0c136..f2f431298313 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java @@ -52,11 +52,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,15 +78,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -163,11 +147,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -209,11 +189,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -257,11 +233,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,19 +259,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -326,19 +286,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java index 88be51eee908..5a305ff0242b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,11 +95,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,11 +131,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java index ce4283bd9370..e70eb5759807 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java @@ -45,11 +45,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,11 +64,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,11 +129,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +166,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -235,15 +207,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index f370ee3ab08b..a8b3db52f378 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -46,11 +46,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 51e6e837e08f..5549d244bcea 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,11 +75,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -138,11 +126,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -163,11 +147,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,11 +168,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -213,15 +189,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,11 +211,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -295,63 +259,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,39 +289,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -438,31 +314,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -482,11 +334,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -507,15 +355,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -539,27 +379,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -586,19 +406,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 48757ce3063d..152dbf4ca7e4 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java index fe7604d0c136..f2f431298313 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -52,11 +52,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,15 +78,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -163,11 +147,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -209,11 +189,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -257,11 +233,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,19 +259,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -326,19 +286,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 88be51eee908..5a305ff0242b 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,11 +95,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,11 +131,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java index ce4283bd9370..e70eb5759807 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -45,11 +45,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,11 +64,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,11 +129,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +166,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -235,15 +207,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index f370ee3ab08b..a8b3db52f378 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -46,11 +46,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index 83c979b95681..2e1c3f2f7314 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,11 +75,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -138,11 +126,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -163,11 +147,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,11 +168,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -213,15 +189,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,11 +211,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -295,63 +259,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,39 +289,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -438,31 +314,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -482,11 +334,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -507,15 +355,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -539,27 +379,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -586,19 +406,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 48757ce3063d..152dbf4ca7e4 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 17bb23345a84..03ddeccd02dc 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,15 +77,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -116,11 +104,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -162,11 +146,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -208,11 +188,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -256,11 +232,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -286,19 +258,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -325,19 +285,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 88be51eee908..5a305ff0242b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,11 +95,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,11 +131,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index ce4283bd9370..e70eb5759807 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -45,11 +45,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,11 +64,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,11 +129,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +166,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -235,15 +207,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java index f370ee3ab08b..a8b3db52f378 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -46,11 +46,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java index 51e6e837e08f..5549d244bcea 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,11 +75,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -138,11 +126,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -163,11 +147,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,11 +168,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -213,15 +189,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,11 +211,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -295,63 +259,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,39 +289,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -438,31 +314,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -482,11 +334,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -507,15 +355,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -539,27 +379,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -586,19 +406,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 48757ce3063d..152dbf4ca7e4 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java index fe7604d0c136..f2f431298313 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java @@ -52,11 +52,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,15 +78,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -163,11 +147,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -209,11 +189,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -257,11 +233,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,19 +259,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -326,19 +286,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java index 88be51eee908..5a305ff0242b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,11 +95,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,11 +131,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java index ce4283bd9370..e70eb5759807 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java @@ -45,11 +45,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,11 +64,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,11 +129,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +166,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -235,15 +207,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 683ef66fdd0b..b1226477511c 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -38,10 +38,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java index cad46630a33e..2e0af3fc11b8 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -41,11 +41,7 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index d43afc47f987..2dd210cf0f2b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -46,11 +46,7 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -); + ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -68,11 +64,7 @@ ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -); + ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -90,11 +82,7 @@ ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -112,11 +100,7 @@ ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -); + ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -134,11 +118,7 @@ ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -); + ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -156,11 +136,7 @@ ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -178,15 +154,7 @@ ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); /** @@ -205,11 +173,7 @@ ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", requ produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); /** @@ -245,63 +209,7 @@ ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -328,39 +236,7 @@ ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -382,31 +258,7 @@ ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); /** @@ -423,11 +275,7 @@ ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required St value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); /** @@ -445,15 +293,7 @@ ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -474,27 +314,7 @@ ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); /** @@ -518,18 +338,6 @@ ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java index 56685918f5d7..c05e348d413f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java @@ -50,11 +50,7 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,11 +63,7 @@ public ResponseEntity createXmlItem( * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -84,11 +76,7 @@ public ResponseEntity fakeOuterBooleanSerialize( * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -108,11 +96,7 @@ public ResponseEntity fakeOuterCompositeSerialize( * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -125,11 +109,7 @@ public ResponseEntity fakeOuterNumberSerialize( * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -142,11 +122,7 @@ public ResponseEntity fakeOuterStringSerialize( * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -159,15 +135,7 @@ public ResponseEntity testBodyWithFileSchema( * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -180,11 +148,7 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -218,63 +182,7 @@ public ResponseEntity testClientModel( * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -295,39 +203,7 @@ public ResponseEntity testEndpointParameters( * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -345,31 +221,7 @@ public ResponseEntity testEnumParameters( * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,11 +233,7 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -398,15 +246,7 @@ public ResponseEntity testInlineAdditionalProperties( * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -423,27 +263,7 @@ public ResponseEntity testJsonFormData( * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -457,19 +277,7 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f07f330318ca..4df13584aac0 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -41,10 +41,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 6e326ba96237..bf34d83297ee 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -41,11 +41,7 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 731b738d329b..a1d08482d7bd 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -44,11 +44,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -71,15 +67,7 @@ ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -103,11 +91,7 @@ ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); /** @@ -132,11 +116,7 @@ ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status va value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags); /** @@ -161,11 +141,7 @@ ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filt value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -192,11 +168,7 @@ ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -219,19 +191,7 @@ ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -255,18 +215,6 @@ ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java index b7336c5f7219..cd559c767d71 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java @@ -43,11 +43,7 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,15 +57,7 @@ public ResponseEntity addPet( * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +71,7 @@ public ResponseEntity deletePet( * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -114,11 +98,7 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -145,11 +125,7 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -176,11 +152,7 @@ public ResponseEntity getPetById( * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -194,19 +166,7 @@ public ResponseEntity updatePet( * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -220,19 +180,7 @@ public ResponseEntity updatePetWithForm( * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 974a6cd1773f..d0da27ee1267 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -39,11 +39,7 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); /** @@ -85,11 +81,7 @@ ResponseEntity deleteOrder( value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); /** @@ -108,10 +100,6 @@ ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java index 833ece720826..4f0f16bb9b71 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java @@ -43,11 +43,7 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,11 +70,7 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -103,11 +95,7 @@ public ResponseEntity getOrderById( * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 463ac44f37e1..4626a062a096 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -37,11 +37,7 @@ public interface UserApi { @PostMapping( value = "/user" ) - ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -57,11 +53,7 @@ ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -77,11 +69,7 @@ ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -100,11 +88,7 @@ ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -125,11 +109,7 @@ ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -149,15 +129,7 @@ ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -192,14 +164,6 @@ ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for l @PutMapping( value = "/user/{username}" ) - ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java index 5a85b48d7d4c..94ea640fd226 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java @@ -42,11 +42,7 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,11 +54,7 @@ public ResponseEntity createUser( * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,11 +66,7 @@ public ResponseEntity createUsersWithArrayInput( * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -92,11 +80,7 @@ public ResponseEntity createUsersWithListInput( * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +94,7 @@ public ResponseEntity deleteUser( * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -140,15 +120,7 @@ public ResponseEntity getUserByName( * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -174,15 +146,7 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java index f370ee3ab08b..a8b3db52f378 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -46,11 +46,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index 51e6e837e08f..5549d244bcea 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,11 +75,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -138,11 +126,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -163,11 +147,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,11 +168,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -213,15 +189,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,11 +211,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -295,63 +259,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,39 +289,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -438,31 +314,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -482,11 +334,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -507,15 +355,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -539,27 +379,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -586,19 +406,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 48757ce3063d..152dbf4ca7e4 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java index fe7604d0c136..f2f431298313 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java @@ -52,11 +52,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,15 +78,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -163,11 +147,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -209,11 +189,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -257,11 +233,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,19 +259,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -326,19 +286,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java index 88be51eee908..5a305ff0242b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,11 +95,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,11 +131,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java index ce4283bd9370..e70eb5759807 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java @@ -45,11 +45,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,11 +64,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,11 +129,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +166,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -235,15 +207,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1b9e93b2dfd0..2e6c84b71bef 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -42,11 +42,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index 5fe792e29b91..8e657ca1b5ee 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -50,11 +50,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -74,11 +70,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -98,11 +90,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -122,11 +110,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -146,11 +130,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -170,11 +150,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -194,15 +170,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -223,11 +191,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -265,63 +229,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -350,39 +258,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -406,31 +282,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -449,11 +301,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } @@ -473,15 +321,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -504,27 +344,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -550,19 +370,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index e9757bbcb1c1..946f68eceb70 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -45,11 +45,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java index f7eeb9c44e84..f1bb6528283e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java @@ -48,11 +48,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -77,15 +73,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return getDelegate().deletePet(petId, apiKey); } @@ -111,11 +99,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { return getDelegate().findPetsByStatus(status); } @@ -142,11 +126,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { return getDelegate().findPetsByTags(tags); } @@ -173,11 +153,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return getDelegate().getPetById(petId); } @@ -206,11 +182,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } @@ -235,19 +207,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -273,19 +233,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java index 9e88807de925..662d4facb81c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -43,11 +43,7 @@ default StoreApiDelegate getDelegate() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return getDelegate().deleteOrder(orderId); } @@ -93,11 +89,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return getDelegate().getOrderById(orderId); } @@ -118,11 +110,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java index 65791557210c..e72e858b8033 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java @@ -41,11 +41,7 @@ default UserApiDelegate getDelegate() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -63,11 +59,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -85,11 +77,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -110,11 +98,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return getDelegate().deleteUser(username); } @@ -137,11 +121,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return getDelegate().getUserByName(username); } @@ -163,15 +143,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return getDelegate().loginUser(username, password); } @@ -210,15 +182,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1b9e93b2dfd0..2e6c84b71bef 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -42,11 +42,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index 5fe792e29b91..8e657ca1b5ee 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -50,11 +50,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -74,11 +70,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -98,11 +90,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -122,11 +110,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -146,11 +130,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -170,11 +150,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -194,15 +170,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -223,11 +191,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -265,63 +229,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -350,39 +258,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -406,31 +282,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -449,11 +301,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } @@ -473,15 +321,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -504,27 +344,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -550,19 +370,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index e9757bbcb1c1..946f68eceb70 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -45,11 +45,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java index f7eeb9c44e84..f1bb6528283e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java @@ -48,11 +48,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -77,15 +73,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return getDelegate().deletePet(petId, apiKey); } @@ -111,11 +99,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { return getDelegate().findPetsByStatus(status); } @@ -142,11 +126,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { return getDelegate().findPetsByTags(tags); } @@ -173,11 +153,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return getDelegate().getPetById(petId); } @@ -206,11 +182,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } @@ -235,19 +207,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -273,19 +233,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java index 9e88807de925..662d4facb81c 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java @@ -43,11 +43,7 @@ default StoreApiDelegate getDelegate() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return getDelegate().deleteOrder(orderId); } @@ -93,11 +89,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return getDelegate().getOrderById(orderId); } @@ -118,11 +110,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java index 65791557210c..e72e858b8033 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java @@ -41,11 +41,7 @@ default UserApiDelegate getDelegate() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -63,11 +59,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -85,11 +77,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -110,11 +98,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return getDelegate().deleteUser(username); } @@ -137,11 +121,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return getDelegate().getUserByName(username); } @@ -163,15 +143,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return getDelegate().loginUser(username, password); } @@ -210,15 +182,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java index d635341d20a4..524403645e45 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index 2e8fd58f6138..40332476bf25 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +79,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -146,11 +134,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -173,11 +157,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,11 +180,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,15 +203,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,11 +227,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -313,63 +277,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -401,31 +309,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -452,23 +336,7 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Query paramet @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -490,11 +358,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -517,15 +381,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -551,27 +407,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -600,19 +436,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 6195cb5875db..54a2a10ac2dc 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java index 17a38b3545f5..35e5be4f7d34 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -86,11 +82,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -119,11 +111,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -167,11 +155,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -215,11 +199,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -265,11 +245,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,19 +273,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -338,19 +302,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java index 6c4e87f692dd..84d9e390a572 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -105,11 +101,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -147,11 +139,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java index f23777f09c6f..f644a1bc53d6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -125,11 +113,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -155,11 +139,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -198,15 +178,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -251,15 +223,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1293ca15e4ce..500701dadbd2 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -45,11 +45,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().call123testSpecialTags(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index 7c221a01f5a0..7db9e93bede0 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -53,11 +53,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default Mono> createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody Mono xmlItem -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody Mono xmlItem, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createXmlItem(xmlItem, exchange); } @@ -77,11 +73,7 @@ default Mono> createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default Mono> fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterBooleanSerialize(body, exchange); } @@ -101,11 +93,7 @@ default Mono> fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default Mono> fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterCompositeSerialize(body, exchange); } @@ -125,11 +113,7 @@ default Mono> fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default Mono> fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterNumberSerialize(body, exchange); } @@ -149,11 +133,7 @@ default Mono> fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default Mono> fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterStringSerialize(body, exchange); } @@ -173,11 +153,7 @@ default Mono> fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default Mono> testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithFileSchema(body, exchange); } @@ -197,15 +173,7 @@ default Mono> testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithQueryParams(query, body, exchange); } @@ -226,11 +194,7 @@ default Mono> testBodyWithQueryParams(@NotNull @ApiParam(va produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClientModel(body, exchange); } @@ -268,63 +232,7 @@ default Mono> testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, exchange); } @@ -353,39 +261,7 @@ default Mono> testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, exchange); } @@ -409,31 +285,7 @@ default Mono> testEnumParameters( @DeleteMapping( value = "/fake" ) - default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, exchange); } @@ -452,11 +304,7 @@ default Mono> testGroupParameters(@NotNull @ApiParam(value value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default Mono> testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono> param -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono> param, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testInlineAdditionalProperties(param, exchange); } @@ -476,15 +324,7 @@ default Mono> testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testJsonFormData(param, param2, exchange); } @@ -507,27 +347,7 @@ default Mono> testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, exchange); } @@ -553,19 +373,7 @@ default Mono> testQueryParameterCollectionFormat(@NotNull @ produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index fab6467598fd..1dcd6bc360c7 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -48,11 +48,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClassname(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java index c62af35acc7b..e95c1dee92ed 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java @@ -51,11 +51,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().addPet(body, exchange); } @@ -80,15 +76,7 @@ default Mono> addPet( @DeleteMapping( value = "/pet/{petId}" ) - default Mono> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deletePet(petId, apiKey, exchange); } @@ -114,11 +102,7 @@ default Mono> deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByStatus(status, exchange); } @@ -145,11 +129,7 @@ default Mono>> findPetsByStatus(@NotNull @ApiParam(valu value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByTags(tags, exchange); } @@ -176,11 +156,7 @@ default Mono>> findPetsByTags(@NotNull @ApiParam(value value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default Mono> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getPetById(petId, exchange); } @@ -209,11 +185,7 @@ default Mono> getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePet(body, exchange); } @@ -238,19 +210,7 @@ default Mono> updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePetWithForm(petId, name, status, exchange); } @@ -276,19 +236,7 @@ default Mono> updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFile(petId, additionalMetadata, file, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java index c94424f2ae14..02b255874126 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java @@ -46,11 +46,7 @@ default StoreApiDelegate getDelegate() { @DeleteMapping( value = "/store/order/{order_id}" ) - default Mono> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteOrder(orderId, exchange); } @@ -96,11 +92,7 @@ default Mono>> getInventory(@ApiIgnore final value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default Mono> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getOrderById(orderId, exchange); } @@ -121,11 +113,7 @@ default Mono> getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default Mono> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().placeOrder(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java index f670c010cd4b..9875996e50cb 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java @@ -44,11 +44,7 @@ default UserApiDelegate getDelegate() { @PostMapping( value = "/user" ) - default Mono> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUser(body, exchange); } @@ -66,11 +62,7 @@ default Mono> createUser( @PostMapping( value = "/user/createWithArray" ) - default Mono> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithArrayInput(body, exchange); } @@ -88,11 +80,7 @@ default Mono> createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default Mono> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithListInput(body, exchange); } @@ -113,11 +101,7 @@ default Mono> createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default Mono> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteUser(username, exchange); } @@ -140,11 +124,7 @@ default Mono> deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default Mono> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getUserByName(username, exchange); } @@ -166,15 +146,7 @@ default Mono> getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().loginUser(username, password, exchange); } @@ -213,15 +185,7 @@ default Mono> logoutUser(@ApiIgnore final ServerWebExchange @PutMapping( value = "/user/{username}" ) - default Mono> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updateUser(username, body, exchange); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 683ef66fdd0b..b1226477511c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -38,10 +38,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index d2397089c859..82d2ed7cec00 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -39,11 +39,7 @@ public AnotherFakeApiController(@org.springframework.beans.factory.annotation.Au * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return delegate.call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 601ff0931412..f21a19403e71 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -46,11 +46,7 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -); + ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -68,11 +64,7 @@ ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -); + ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -90,11 +82,7 @@ ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -112,11 +100,7 @@ ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -); + ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -134,11 +118,7 @@ ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -); + ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -156,11 +136,7 @@ ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -178,15 +154,7 @@ ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); /** @@ -205,11 +173,7 @@ ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", requ produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); /** @@ -245,63 +209,7 @@ ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -328,39 +236,7 @@ ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -382,31 +258,7 @@ ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); /** @@ -423,11 +275,7 @@ ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required St value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); /** @@ -445,15 +293,7 @@ ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -474,27 +314,7 @@ ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); /** @@ -518,18 +338,6 @@ ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 5bf25bc8db21..6e088985cf24 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -48,11 +48,7 @@ public FakeApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return delegate.createXmlItem(xmlItem); } @@ -64,11 +60,7 @@ public ResponseEntity createXmlItem( * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return delegate.fakeOuterBooleanSerialize(body); } @@ -80,11 +72,7 @@ public ResponseEntity fakeOuterBooleanSerialize( * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return delegate.fakeOuterCompositeSerialize(body); } @@ -96,11 +84,7 @@ public ResponseEntity fakeOuterCompositeSerialize( * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return delegate.fakeOuterNumberSerialize(body); } @@ -112,11 +96,7 @@ public ResponseEntity fakeOuterNumberSerialize( * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return delegate.fakeOuterStringSerialize(body); } @@ -128,11 +108,7 @@ public ResponseEntity fakeOuterStringSerialize( * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return delegate.testBodyWithFileSchema(body); } @@ -144,15 +120,7 @@ public ResponseEntity testBodyWithFileSchema( * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return delegate.testBodyWithQueryParams(query, body); } @@ -164,11 +132,7 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return delegate.testClientModel(body); } @@ -194,63 +158,7 @@ public ResponseEntity testClientModel( * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return delegate.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -270,39 +178,7 @@ public ResponseEntity testEndpointParameters( * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -319,31 +195,7 @@ public ResponseEntity testEnumParameters( * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -354,11 +206,7 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return delegate.testInlineAdditionalProperties(param); } @@ -370,15 +218,7 @@ public ResponseEntity testInlineAdditionalProperties( * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return delegate.testJsonFormData(param, param2); } @@ -394,27 +234,7 @@ public ResponseEntity testJsonFormData( * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -427,19 +247,7 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return delegate.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f07f330318ca..4df13584aac0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -41,10 +41,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index ffd138d85e3c..5e208f64c750 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -39,11 +39,7 @@ public FakeClassnameTestApiController(@org.springframework.beans.factory.annotat * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return delegate.testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java index 6229df9e3d01..9609bd1d8d13 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -43,11 +43,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -70,15 +66,7 @@ ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -102,11 +90,7 @@ ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable); /** @@ -131,11 +115,7 @@ ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status va value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable); /** @@ -160,11 +140,7 @@ ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to fil value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -191,11 +167,7 @@ ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -218,19 +190,7 @@ ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -254,18 +214,6 @@ ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java index 9a7881a1d56f..04c2d70b8754 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -40,11 +40,7 @@ public PetApiController(@org.springframework.beans.factory.annotation.Autowired( * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return delegate.addPet(body); } @@ -57,15 +53,7 @@ public ResponseEntity addPet( * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return delegate.deletePet(petId, apiKey); } @@ -78,11 +66,7 @@ public ResponseEntity deletePet( * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { return delegate.findPetsByStatus(status, pageable); } @@ -96,11 +80,7 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { return delegate.findPetsByTags(tags, pageable); } @@ -114,11 +94,7 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return delegate.getPetById(petId); } @@ -132,11 +108,7 @@ public ResponseEntity getPetById( * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return delegate.updatePet(body); } @@ -149,19 +121,7 @@ public ResponseEntity updatePet( * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return delegate.updatePetWithForm(petId, name, status); } @@ -174,19 +134,7 @@ public ResponseEntity updatePetWithForm( * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return delegate.uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java index 974a6cd1773f..d0da27ee1267 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -39,11 +39,7 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); /** @@ -85,11 +81,7 @@ ResponseEntity deleteOrder( value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); /** @@ -108,10 +100,6 @@ ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index 19236d0e2a7c..e52670dc35de 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -41,11 +41,7 @@ public StoreApiController(@org.springframework.beans.factory.annotation.Autowire * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return delegate.deleteOrder(orderId); } @@ -70,11 +66,7 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return delegate.getOrderById(orderId); } @@ -86,11 +78,7 @@ public ResponseEntity getOrderById( * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return delegate.placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java index 463ac44f37e1..4626a062a096 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -37,11 +37,7 @@ public interface UserApi { @PostMapping( value = "/user" ) - ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -57,11 +53,7 @@ ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -77,11 +69,7 @@ ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -100,11 +88,7 @@ ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -125,11 +109,7 @@ ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -149,15 +129,7 @@ ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -192,14 +164,6 @@ ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for l @PutMapping( value = "/user/{username}" ) - ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java index e02da9575370..d2f4ce3ee208 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -40,11 +40,7 @@ public UserApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return delegate.createUser(body); } @@ -55,11 +51,7 @@ public ResponseEntity createUser( * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return delegate.createUsersWithArrayInput(body); } @@ -70,11 +62,7 @@ public ResponseEntity createUsersWithArrayInput( * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return delegate.createUsersWithListInput(body); } @@ -87,11 +75,7 @@ public ResponseEntity createUsersWithListInput( * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return delegate.deleteUser(username); } @@ -104,11 +88,7 @@ public ResponseEntity deleteUser( * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return delegate.getUserByName(username); } @@ -121,15 +101,7 @@ public ResponseEntity getUserByName( * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return delegate.loginUser(username, password); } @@ -153,15 +125,7 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return delegate.updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1b9e93b2dfd0..2e6c84b71bef 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -42,11 +42,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index bbca0e006ed7..90e2dc0cc90e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -50,11 +50,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -74,11 +70,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -98,11 +90,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -122,11 +110,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -146,11 +130,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -170,11 +150,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -194,15 +170,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -223,11 +191,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -265,63 +229,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -350,39 +258,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -406,31 +282,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -449,11 +301,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } @@ -473,15 +321,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -504,27 +344,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -550,19 +370,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index e9757bbcb1c1..946f68eceb70 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -45,11 +45,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java index dd661ebdc2e7..764a0abd7e3b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java @@ -47,11 +47,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -76,15 +72,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return getDelegate().deletePet(petId, apiKey); } @@ -110,11 +98,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { return getDelegate().findPetsByStatus(status, pageable); } @@ -141,11 +125,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { return getDelegate().findPetsByTags(tags, pageable); } @@ -172,11 +152,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return getDelegate().getPetById(petId); } @@ -205,11 +181,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } @@ -234,19 +206,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -272,19 +232,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java index 9e88807de925..662d4facb81c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java @@ -43,11 +43,7 @@ default StoreApiDelegate getDelegate() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return getDelegate().deleteOrder(orderId); } @@ -93,11 +89,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return getDelegate().getOrderById(orderId); } @@ -118,11 +110,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java index 65791557210c..e72e858b8033 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java @@ -41,11 +41,7 @@ default UserApiDelegate getDelegate() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -63,11 +59,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -85,11 +77,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -110,11 +98,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return getDelegate().deleteUser(username); } @@ -137,11 +121,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return getDelegate().getUserByName(username); } @@ -163,15 +143,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return getDelegate().loginUser(username, password); } @@ -210,15 +182,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 683ef66fdd0b..b1226477511c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -38,10 +38,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index cad46630a33e..2e0af3fc11b8 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -41,11 +41,7 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 601ff0931412..f21a19403e71 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -46,11 +46,7 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -); + ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -68,11 +64,7 @@ ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -); + ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -90,11 +82,7 @@ ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -112,11 +100,7 @@ ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -); + ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -134,11 +118,7 @@ ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -); + ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -156,11 +136,7 @@ ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -178,15 +154,7 @@ ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); /** @@ -205,11 +173,7 @@ ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", requ produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); /** @@ -245,63 +209,7 @@ ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -328,39 +236,7 @@ ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -382,31 +258,7 @@ ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); /** @@ -423,11 +275,7 @@ ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required St value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); /** @@ -445,15 +293,7 @@ ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -474,27 +314,7 @@ ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); /** @@ -518,18 +338,6 @@ ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 68623a815e1a..371d378c18f4 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -50,11 +50,7 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,11 +63,7 @@ public ResponseEntity createXmlItem( * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -84,11 +76,7 @@ public ResponseEntity fakeOuterBooleanSerialize( * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -108,11 +96,7 @@ public ResponseEntity fakeOuterCompositeSerialize( * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -125,11 +109,7 @@ public ResponseEntity fakeOuterNumberSerialize( * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -142,11 +122,7 @@ public ResponseEntity fakeOuterStringSerialize( * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -159,15 +135,7 @@ public ResponseEntity testBodyWithFileSchema( * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -180,11 +148,7 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -218,63 +182,7 @@ public ResponseEntity testClientModel( * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -295,39 +203,7 @@ public ResponseEntity testEndpointParameters( * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -345,31 +221,7 @@ public ResponseEntity testEnumParameters( * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,11 +233,7 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -398,15 +246,7 @@ public ResponseEntity testInlineAdditionalProperties( * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -423,27 +263,7 @@ public ResponseEntity testJsonFormData( * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -457,19 +277,7 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f07f330318ca..4df13584aac0 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -41,10 +41,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 6e326ba96237..bf34d83297ee 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -41,11 +41,7 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java index 6229df9e3d01..9609bd1d8d13 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -43,11 +43,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -70,15 +66,7 @@ ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -102,11 +90,7 @@ ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable); /** @@ -131,11 +115,7 @@ ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status va value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable); /** @@ -160,11 +140,7 @@ ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to fil value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -191,11 +167,7 @@ ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -218,19 +190,7 @@ ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -254,18 +214,6 @@ ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java index e3c3878ecbad..764063efcaeb 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -42,11 +42,7 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -60,15 +56,7 @@ public ResponseEntity addPet( * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,11 +70,7 @@ public ResponseEntity deletePet( * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -113,11 +97,7 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -144,11 +124,7 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -175,11 +151,7 @@ public ResponseEntity getPetById( * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -193,19 +165,7 @@ public ResponseEntity updatePet( * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -219,19 +179,7 @@ public ResponseEntity updatePetWithForm( * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java index 974a6cd1773f..d0da27ee1267 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -39,11 +39,7 @@ public interface StoreApi { @DeleteMapping( value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); /** @@ -85,11 +81,7 @@ ResponseEntity deleteOrder( value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); /** @@ -108,10 +100,6 @@ ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index 833ece720826..4f0f16bb9b71 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -43,11 +43,7 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,11 +70,7 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -103,11 +95,7 @@ public ResponseEntity getOrderById( * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java index 463ac44f37e1..4626a062a096 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -37,11 +37,7 @@ public interface UserApi { @PostMapping( value = "/user" ) - ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -57,11 +53,7 @@ ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -77,11 +69,7 @@ ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -100,11 +88,7 @@ ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -125,11 +109,7 @@ ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -149,15 +129,7 @@ ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -192,14 +164,6 @@ ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for l @PutMapping( value = "/user/{username}" ) - ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java index 5a85b48d7d4c..94ea640fd226 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -42,11 +42,7 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,11 +54,7 @@ public ResponseEntity createUser( * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,11 +66,7 @@ public ResponseEntity createUsersWithArrayInput( * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -92,11 +80,7 @@ public ResponseEntity createUsersWithListInput( * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +94,7 @@ public ResponseEntity deleteUser( * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -140,15 +120,7 @@ public ResponseEntity getUserByName( * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -174,15 +146,7 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index f370ee3ab08b..a8b3db52f378 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -46,11 +46,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index 83c979b95681..2e1c3f2f7314 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,11 +75,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -138,11 +126,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -163,11 +147,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,11 +168,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -213,15 +189,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,11 +211,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -295,63 +259,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,39 +289,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -438,31 +314,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -482,11 +334,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -507,15 +355,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -539,27 +379,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -586,19 +406,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 48757ce3063d..152dbf4ca7e4 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 17bb23345a84..03ddeccd02dc 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,15 +77,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -116,11 +104,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -162,11 +146,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -208,11 +188,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -256,11 +232,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -286,19 +258,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -325,19 +285,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 88be51eee908..5a305ff0242b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,11 +95,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,11 +131,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index ce4283bd9370..e70eb5759807 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -45,11 +45,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,11 +64,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,11 +129,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +166,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -235,15 +207,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java index f370ee3ab08b..a8b3db52f378 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -46,11 +46,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index cea00688c67e..9268cae8cd01 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,11 +75,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -138,11 +126,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -163,11 +147,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,11 +168,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -213,15 +189,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,11 +211,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -295,63 +259,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,39 +289,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) Optional> enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) Optional enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") Optional enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) Optional> enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) Optional enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") Optional enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -438,31 +314,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Optional booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Optional booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -482,11 +334,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -507,15 +355,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -539,27 +379,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -586,19 +406,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 48757ce3063d..152dbf4ca7e4 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java index 777d63843eed..1ae0e594e2f1 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java @@ -52,11 +52,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,15 +78,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) Optional apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) Optional apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -163,11 +147,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -209,11 +189,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -257,11 +233,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,19 +259,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -326,19 +286,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java index 88be51eee908..5a305ff0242b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,11 +95,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,11 +131,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java index ce4283bd9370..e70eb5759807 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java @@ -45,11 +45,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,11 +64,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,11 +129,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +166,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -235,15 +207,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java index 5286f8d7abe3..29f5ca094c4c 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index 268aa316c28a..5b33ae95de9c 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -58,11 +58,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -84,11 +80,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -145,11 +133,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,11 +155,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -197,11 +177,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -223,15 +199,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -254,11 +222,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -307,63 +271,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -394,39 +302,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -452,31 +328,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -497,11 +349,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -523,15 +371,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -556,27 +396,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -604,19 +424,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java index b33ee538c895..42eb745eebf7 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java @@ -53,11 +53,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java index 1a9cece63e1e..2a887843a6f4 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -87,15 +83,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -123,11 +111,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -170,11 +154,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -217,11 +197,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -266,11 +242,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -297,19 +269,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,19 +297,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java index 40844d8fa0a3..73ac595762a8 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -105,11 +101,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -146,11 +138,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java index e15f183a302c..8f422c7d6a66 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -73,11 +69,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -124,11 +112,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -153,11 +137,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -195,15 +175,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -246,15 +218,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java index f370ee3ab08b..a8b3db52f378 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -46,11 +46,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 51e6e837e08f..5549d244bcea 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,11 +75,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -138,11 +126,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -163,11 +147,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,11 +168,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -213,15 +189,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,11 +211,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -295,63 +259,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,39 +289,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -438,31 +314,7 @@ default ResponseEntity testEnumParameters( @DeleteMapping( value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -482,11 +334,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -507,15 +355,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -539,27 +379,7 @@ default ResponseEntity testJsonFormData( @PutMapping( value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -586,19 +406,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 48757ce3063d..152dbf4ca7e4 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java index fe7604d0c136..f2f431298313 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java @@ -52,11 +52,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,15 +78,7 @@ default ResponseEntity addPet( @DeleteMapping( value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -163,11 +147,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -209,11 +189,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -257,11 +233,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,19 +259,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -326,19 +286,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java index 88be51eee908..5a305ff0242b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { @DeleteMapping( value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,11 +95,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,11 +131,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java index ce4283bd9370..e70eb5759807 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java @@ -45,11 +45,7 @@ default Optional getRequest() { @PostMapping( value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,11 +64,7 @@ default ResponseEntity createUser( @PostMapping( value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( @PostMapping( value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -117,11 +105,7 @@ default ResponseEntity createUsersWithListInput( @DeleteMapping( value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,11 +129,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +166,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -235,15 +207,7 @@ default ResponseEntity logoutUser() { @PutMapping( value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } From 169ce753df3d6c6da2be6938dddd0b1e1772c2b0 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Fri, 30 Jul 2021 11:34:23 -0400 Subject: [PATCH 05/21] Update codegen with merge from master --- .../src/main/java/org/openapitools/api/UserApi.java | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index d9ff6fcafc93..cdba3cdb0e2e 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -163,6 +163,7 @@ public interface UserApi { * * @return endpoint configuration response (status code 200) */ + @ApiOperation(value = "logoutUserOptions", nickname = "logoutUserOptions", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "endpoint configuration response") }) From 8b45b76ed78012462c108c41a3c894fafe83142c Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Mon, 23 Aug 2021 10:41:31 -0400 Subject: [PATCH 06/21] Update tests and samples --- .../java/org/openapitools/api/PetApi.java | 82 +++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 +- .../main/java/org/openapitools/model/Pet.java | 12 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 +- .../java/org/openapitools/api/PetApi.java | 82 +++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 +- .../main/java/org/openapitools/model/Pet.java | 12 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 +- .../java/org/openapitools/api/PetApi.java | 82 +++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 65 ++++- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 +- .../main/java/org/openapitools/model/Pet.java | 12 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 +- .../java/org/openapitools/api/PetApi.java | 82 +++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 +- .../main/java/org/openapitools/model/Pet.java | 12 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 +- .../java/org/openapitools/api/PetApi.java | 82 +++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 +- .../main/java/org/openapitools/model/Pet.java | 12 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 +- .../org/openapitools/api/TestHeadersApi.java | 27 +- .../openapitools/api/TestQueryParamsApi.java | 27 +- .../org/openapitools/model/TestResponse.java | 9 +- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../openapitools/api/FakeApiController.java | 222 ++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../openapitools/api/PetApiController.java | 68 ++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../openapitools/api/UserApiController.java | 50 +++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 223 ++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 81 +++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../openapitools/api/FakeApiController.java | 222 ++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../openapitools/api/PetApiController.java | 68 ++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../openapitools/api/UserApiController.java | 50 +++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../openapitools/api/FakeApiController.java | 222 ++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../openapitools/api/PetApiController.java | 68 ++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../openapitools/api/UserApiController.java | 50 +++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- .../virtualan/api/AnotherFakeApi.java | 7 +- .../openapitools/virtualan/api/FakeApi.java | 239 ++++++++++++++++-- .../virtualan/api/FakeClassnameTestApi.java | 7 +- .../openapitools/virtualan/api/PetApi.java | 85 ++++++- .../openapitools/virtualan/api/StoreApi.java | 26 +- .../openapitools/virtualan/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../openapitools/virtualan/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../virtualan/model/ArrayOfNumberOnly.java | 3 +- .../virtualan/model/ArrayTest.java | 7 +- .../openapitools/virtualan/model/BigCat.java | 3 +- .../virtualan/model/BigCatAllOf.java | 3 +- .../virtualan/model/Capitalization.java | 13 +- .../org/openapitools/virtualan/model/Cat.java | 3 +- .../virtualan/model/CatAllOf.java | 3 +- .../virtualan/model/Category.java | 5 +- .../virtualan/model/ClassModel.java | 2 +- .../openapitools/virtualan/model/Client.java | 3 +- .../org/openapitools/virtualan/model/Dog.java | 3 +- .../virtualan/model/DogAllOf.java | 3 +- .../virtualan/model/EnumArrays.java | 5 +- .../virtualan/model/EnumTest.java | 11 +- .../virtualan/model/FileSchemaTestClass.java | 5 +- .../virtualan/model/FormatTest.java | 29 +-- .../virtualan/model/HasOnlyReadOnly.java | 5 +- .../openapitools/virtualan/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../virtualan/model/Model200Response.java | 4 +- .../virtualan/model/ModelApiResponse.java | 7 +- .../virtualan/model/ModelReturn.java | 2 +- .../openapitools/virtualan/model/Name.java | 8 +- .../virtualan/model/NumberOnly.java | 3 +- .../openapitools/virtualan/model/Order.java | 13 +- .../virtualan/model/OuterComposite.java | 7 +- .../org/openapitools/virtualan/model/Pet.java | 13 +- .../virtualan/model/ReadOnlyFirst.java | 5 +- .../virtualan/model/SpecialModelName.java | 3 +- .../org/openapitools/virtualan/model/Tag.java | 5 +- .../virtualan/model/TypeHolderDefault.java | 11 +- .../virtualan/model/TypeHolderExample.java | 13 +- .../openapitools/virtualan/model/User.java | 17 +- .../openapitools/virtualan/model/XmlItem.java | 59 +++-- .../org/openapitools/api/AnotherFakeApi.java | 7 +- .../java/org/openapitools/api/FakeApi.java | 239 ++++++++++++++++-- .../api/FakeClassnameTestApi.java | 7 +- .../java/org/openapitools/api/PetApi.java | 85 ++++++- .../java/org/openapitools/api/StoreApi.java | 26 +- .../java/org/openapitools/api/UserApi.java | 63 ++++- .../model/AdditionalPropertiesAnyType.java | 3 +- .../model/AdditionalPropertiesArray.java | 3 +- .../model/AdditionalPropertiesBoolean.java | 3 +- .../model/AdditionalPropertiesClass.java | 23 +- .../model/AdditionalPropertiesInteger.java | 3 +- .../model/AdditionalPropertiesNumber.java | 3 +- .../model/AdditionalPropertiesObject.java | 3 +- .../model/AdditionalPropertiesString.java | 3 +- .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 3 +- .../openapitools/model/ArrayOfNumberOnly.java | 3 +- .../org/openapitools/model/ArrayTest.java | 7 +- .../java/org/openapitools/model/BigCat.java | 3 +- .../org/openapitools/model/BigCatAllOf.java | 3 +- .../openapitools/model/Capitalization.java | 13 +- .../main/java/org/openapitools/model/Cat.java | 3 +- .../java/org/openapitools/model/CatAllOf.java | 3 +- .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 3 +- .../main/java/org/openapitools/model/Dog.java | 3 +- .../java/org/openapitools/model/DogAllOf.java | 3 +- .../org/openapitools/model/EnumArrays.java | 5 +- .../java/org/openapitools/model/EnumTest.java | 11 +- .../model/FileSchemaTestClass.java | 5 +- .../org/openapitools/model/FormatTest.java | 29 +-- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 9 +- ...ropertiesAndAdditionalPropertiesClass.java | 7 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 7 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 13 +- .../openapitools/model/OuterComposite.java | 7 +- .../main/java/org/openapitools/model/Pet.java | 13 +- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 3 +- .../main/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 11 +- .../openapitools/model/TypeHolderExample.java | 13 +- .../java/org/openapitools/model/User.java | 17 +- .../java/org/openapitools/model/XmlItem.java | 59 +++-- 956 files changed, 11725 insertions(+), 4403 deletions(-) diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java index 971d6bf285a0..b76698f483bd 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java @@ -41,13 +41,18 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = "application/json" ) - CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + CompletableFuture> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -64,12 +69,21 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + CompletableFuture> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -87,14 +101,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = "application/json" ) - CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +); /** @@ -113,14 +133,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = "application/json" ) - CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); + CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +); /** @@ -138,15 +164,22 @@ public interface PetApi { @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = "application/json" ) - CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + CompletableFuture> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -164,15 +197,22 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = "application/json" ) - CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + CompletableFuture> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -190,13 +230,26 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + CompletableFuture> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + + + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -214,6 +267,7 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -221,6 +275,18 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + CompletableFuture> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java index d4ede5b101d1..ad895139dae2 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java @@ -39,13 +39,19 @@ public interface StoreApi { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); + CompletableFuture> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +); /** @@ -60,6 +66,7 @@ public interface StoreApi { @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -81,15 +88,22 @@ public interface StoreApi { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{orderId}", produces = "application/json" ) - CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); + CompletableFuture> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +); /** @@ -102,13 +116,19 @@ public interface StoreApi { @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = "application/json" ) - CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + CompletableFuture> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java index ba8b73d5553a..3b7aab2c39d1 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java @@ -38,12 +38,17 @@ public interface UserApi { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + CompletableFuture> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -55,12 +60,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + CompletableFuture> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -72,12 +82,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + CompletableFuture> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -91,13 +106,19 @@ public interface UserApi { @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + CompletableFuture> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -111,15 +132,22 @@ public interface UserApi { @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = "application/json" ) - CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + CompletableFuture> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -133,14 +161,24 @@ public interface UserApi { @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = "application/json" ) - CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -151,6 +189,7 @@ public interface UserApi { @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -171,12 +210,22 @@ public interface UserApi { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + CompletableFuture> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java index f21d835af4da..c292a0f47a6b 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java @@ -35,7 +35,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +55,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java index ec1b1b81d6a4..9e9d4ce40eb7 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -38,7 +38,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +58,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +78,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java index 2f24cd46851d..d3c447cf1a0c 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java @@ -87,7 +87,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +107,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +127,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +147,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +168,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +188,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java index a1f702f1a72f..454691be447a 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -111,7 +111,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -132,7 +132,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -158,7 +158,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -187,7 +187,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -208,7 +208,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java index 8e3f67322335..c9060b3b00eb 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java @@ -35,7 +35,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +55,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java index 73fcf01b5375..bf32080d806d 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java @@ -53,7 +53,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +73,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +93,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +113,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +133,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +153,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +173,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +193,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 3da0eda35fa7..1af66c82e801 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -40,13 +40,18 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -63,12 +68,21 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - com.netflix.hystrix.HystrixCommand> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + com.netflix.hystrix.HystrixCommand> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -86,14 +100,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +); /** @@ -112,14 +132,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); + com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +); /** @@ -137,15 +163,22 @@ public interface PetApi { @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + com.netflix.hystrix.HystrixCommand> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -163,15 +196,22 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -189,13 +229,26 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - com.netflix.hystrix.HystrixCommand> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + com.netflix.hystrix.HystrixCommand> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + + + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -213,6 +266,7 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -220,6 +274,18 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - com.netflix.hystrix.HystrixCommand> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + com.netflix.hystrix.HystrixCommand> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 0bbf4546aa4a..5a5b824ada4b 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -38,13 +38,19 @@ public interface StoreApi { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - com.netflix.hystrix.HystrixCommand> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); + com.netflix.hystrix.HystrixCommand> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +); /** @@ -59,6 +65,7 @@ public interface StoreApi { @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -80,15 +87,22 @@ public interface StoreApi { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{orderId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); + com.netflix.hystrix.HystrixCommand> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +); /** @@ -101,13 +115,19 @@ public interface StoreApi { @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + com.netflix.hystrix.HystrixCommand> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 409fdc780be1..d51e165cfcc1 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -37,12 +37,17 @@ public interface UserApi { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -54,12 +59,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -71,12 +81,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -90,13 +105,19 @@ public interface UserApi { @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + com.netflix.hystrix.HystrixCommand> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -110,15 +131,22 @@ public interface UserApi { @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + com.netflix.hystrix.HystrixCommand> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -132,14 +160,24 @@ public interface UserApi { @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -150,6 +188,7 @@ public interface UserApi { @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -170,12 +209,22 @@ public interface UserApi { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java index e2eb32453384..2f0faf221ee6 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -33,7 +33,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -53,7 +53,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 2b85999b0175..ac9c418a9199 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -36,7 +36,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -56,7 +56,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -76,7 +76,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java index fe670efa69ec..6638fe48785b 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -85,7 +85,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -105,7 +105,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -125,7 +125,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -145,7 +145,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -166,7 +166,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -186,7 +186,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java index 0513ffeb0f36..340ccaa3ea2d 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -89,7 +89,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -109,7 +109,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -130,7 +130,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java index e067ae023271..ec7a93b81abf 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -33,7 +33,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -53,7 +53,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java index 062860067243..b8d3e5db7f48 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java @@ -51,7 +51,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -71,7 +71,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -91,7 +91,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -111,7 +111,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -131,7 +131,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -151,7 +151,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -171,7 +171,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -191,7 +191,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index d0cd764ddcaa..ed6abf922471 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -40,13 +40,18 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = "application/json" ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -63,12 +68,21 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -86,14 +100,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = "application/json" ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -112,14 +132,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = "application/json" ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -137,15 +163,22 @@ public interface PetApi { @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = "application/json" ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -163,15 +196,22 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = "application/json" ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -189,13 +229,26 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + + + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -213,6 +266,7 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -220,6 +274,18 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 171d2b0d5b1c..2b0433e33f90 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -38,13 +38,19 @@ public interface StoreApi { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); + ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +); /** @@ -59,6 +65,7 @@ public interface StoreApi { @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -80,15 +87,22 @@ public interface StoreApi { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{orderId}", produces = "application/json" ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); + ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +); /** @@ -101,13 +115,19 @@ public interface StoreApi { @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = "application/json" ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index b2253f897bb4..f3a51ae0eb25 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -37,12 +37,17 @@ public interface UserApi { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -54,12 +59,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -71,12 +81,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -90,13 +105,19 @@ public interface UserApi { @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -110,15 +131,22 @@ public interface UserApi { @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = "application/json" ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -132,14 +160,24 @@ public interface UserApi { @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = "application/json" ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -150,6 +188,7 @@ public interface UserApi { @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -163,8 +202,10 @@ public interface UserApi { * * @return endpoint configuration response (status code 200) */ + @ApiOperation(value = "logoutUserOptions", nickname = "logoutUserOptions", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "endpoint configuration response") }) @RequestMapping( method = RequestMethod.OPTIONS, @@ -185,12 +226,22 @@ public interface UserApi { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java index f21d835af4da..c292a0f47a6b 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -35,7 +35,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +55,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index ec1b1b81d6a4..9e9d4ce40eb7 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -38,7 +38,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +58,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +78,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java index 2f24cd46851d..d3c447cf1a0c 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -87,7 +87,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +107,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +127,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +147,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +168,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +188,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java index a1f702f1a72f..454691be447a 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -111,7 +111,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -132,7 +132,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -158,7 +158,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -187,7 +187,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -208,7 +208,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 8e3f67322335..c9060b3b00eb 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -35,7 +35,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +55,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java index 73fcf01b5375..bf32080d806d 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -53,7 +53,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +73,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +93,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +113,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +133,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +153,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +173,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +193,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index 3da0eda35fa7..1af66c82e801 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -40,13 +40,18 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -63,12 +68,21 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - com.netflix.hystrix.HystrixCommand> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + com.netflix.hystrix.HystrixCommand> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -86,14 +100,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +); /** @@ -112,14 +132,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); + com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +); /** @@ -137,15 +163,22 @@ public interface PetApi { @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + com.netflix.hystrix.HystrixCommand> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -163,15 +196,22 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -189,13 +229,26 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - com.netflix.hystrix.HystrixCommand> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + com.netflix.hystrix.HystrixCommand> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + + + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -213,6 +266,7 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -220,6 +274,18 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - com.netflix.hystrix.HystrixCommand> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + com.netflix.hystrix.HystrixCommand> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 0bbf4546aa4a..5a5b824ada4b 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -38,13 +38,19 @@ public interface StoreApi { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - com.netflix.hystrix.HystrixCommand> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); + com.netflix.hystrix.HystrixCommand> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +); /** @@ -59,6 +65,7 @@ public interface StoreApi { @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -80,15 +87,22 @@ public interface StoreApi { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{orderId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); + com.netflix.hystrix.HystrixCommand> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +); /** @@ -101,13 +115,19 @@ public interface StoreApi { @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + com.netflix.hystrix.HystrixCommand> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index 409fdc780be1..d51e165cfcc1 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -37,12 +37,17 @@ public interface UserApi { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -54,12 +59,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -71,12 +81,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -90,13 +105,19 @@ public interface UserApi { @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + com.netflix.hystrix.HystrixCommand> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -110,15 +131,22 @@ public interface UserApi { @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + com.netflix.hystrix.HystrixCommand> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -132,14 +160,24 @@ public interface UserApi { @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -150,6 +188,7 @@ public interface UserApi { @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -170,12 +209,22 @@ public interface UserApi { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java index ae728150a9ee..5ed982f3c2a4 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java index 0571fe8a3060..13f3d41ab028 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java index 6be72e63e33c..11d371c1659e 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java index 333fb7361372..91fc8792ada9 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java @@ -90,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -110,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -131,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -157,7 +157,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -186,7 +186,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -207,7 +207,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java index e00e21acfced..9ef543d62ff8 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java index 518401c0b8dc..5de6b4ef9668 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java index 2a7ef2c42f17..8e29471cc021 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java @@ -44,13 +44,18 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = "application/json" ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -70,12 +75,21 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -96,14 +110,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = "application/json" ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -139,14 +159,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = "application/json" ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,15 +207,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = "application/json" ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -224,15 +257,22 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = "application/json" ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -253,13 +293,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -280,6 +333,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -287,7 +341,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = "application/json", consumes = "multipart/form-data" ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java index 2ae99a1fcc7a..529891d25848 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java @@ -42,13 +42,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +72,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -90,15 +97,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{orderId}", produces = "application/json" ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -128,14 +142,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = "application/json" ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java index 9810c21f7d8d..32567388c5f7 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java @@ -41,12 +41,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,12 +66,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,12 +91,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,13 +118,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,15 +147,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = "application/json" ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,14 +193,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = "application/json" ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -186,6 +224,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -209,13 +248,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java index f21d835af4da..c292a0f47a6b 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java @@ -35,7 +35,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +55,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java index ec1b1b81d6a4..9e9d4ce40eb7 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -38,7 +38,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +58,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +78,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java index 2f24cd46851d..d3c447cf1a0c 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java @@ -87,7 +87,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +107,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +127,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +147,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +168,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +188,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java index a1f702f1a72f..454691be447a 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -111,7 +111,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -132,7 +132,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -158,7 +158,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -187,7 +187,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -208,7 +208,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java index 8e3f67322335..c9060b3b00eb 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java @@ -35,7 +35,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +55,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java index 73fcf01b5375..bf32080d806d 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java @@ -53,7 +53,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +73,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +93,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +113,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +133,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +153,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +173,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +193,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java index 86368d2b17e9..ffad3244e9cb 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java @@ -46,13 +46,38 @@ default Optional getRequest() { @ApiOperation(value = "test headers", nickname = "headersTest", notes = "desc", response = TestResponse.class, tags={ "verify-default-value", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "default response", response = TestResponse.class) }) @RequestMapping( method = RequestMethod.GET, value = "/test-headers", produces = { "application/json" } ) - default ResponseEntity headersTest(@ApiParam(value = "" , defaultValue="11.2") @RequestHeader(value="headerNumber", required=false) BigDecimal headerNumber,@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerString", required=false) String headerString,@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerStringWrapped", required=false) String headerStringWrapped,@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotes", required=false) String headerStringQuotes,@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotesWrapped", required=false) String headerStringQuotesWrapped,@ApiParam(value = "" , defaultValue="true") @RequestHeader(value="headerBoolean", required=false) Boolean headerBoolean) { + default ResponseEntity headersTest( + +@ApiParam(value = "" , defaultValue="11.2") @RequestHeader(value="headerNumber", required=false) BigDecimal headerNumber + +, + +@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerString", required=false) String headerString + +, + +@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerStringWrapped", required=false) String headerStringWrapped + +, + +@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotes", required=false) String headerStringQuotes + +, + +@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotesWrapped", required=false) String headerStringQuotesWrapped + +, + +@ApiParam(value = "" , defaultValue="true") @RequestHeader(value="headerBoolean", required=false) Boolean headerBoolean + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java index eccd6d609dc6..4ac326397dc8 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java @@ -46,13 +46,38 @@ default Optional getRequest() { @ApiOperation(value = "test query params", nickname = "queryParamsTest", notes = "desc", response = TestResponse.class, tags={ "verify-default-value", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "default response", response = TestResponse.class) }) @RequestMapping( method = RequestMethod.GET, value = "/test-query-params", produces = { "application/json" } ) - default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue="11.2") BigDecimal queryNumber,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue="qwerty") String queryString,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue="qwerty") String queryStringWrapped,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotes,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotesWrapped,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue="true") Boolean queryBoolean) { + default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue="11.2") BigDecimal queryNumber + + + +,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue="qwerty") String queryString + + + +,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue="qwerty") String queryStringWrapped + + + +,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotes + + + +,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotesWrapped + + + +,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue="true") Boolean queryBoolean + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java index 6abf9ea575e8..0d4189a6d04c 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java @@ -18,7 +18,6 @@ /** * TestResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TestResponse { @JsonProperty("id") @@ -42,7 +41,7 @@ public TestResponse id(Integer id) { * Get id * @return id */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -63,7 +62,7 @@ public TestResponse stringField(String stringField) { * Get stringField * @return stringField */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -84,7 +83,7 @@ public TestResponse numberField(BigDecimal numberField) { * Get numberField * @return numberField */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -106,7 +105,7 @@ public TestResponse booleanField(Boolean booleanField) { * Get booleanField * @return booleanField */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java index 7c0027e16c75..91302ed353b5 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -41,6 +41,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -48,7 +49,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default CompletableFuture> call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java index 37ffd491ed61..829e201bbf23 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java @@ -50,13 +50,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default CompletableFuture> createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default CompletableFuture> createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -72,13 +77,18 @@ default CompletableFuture> createXmlItem(@ApiParam(value = @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default CompletableFuture> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default CompletableFuture> fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -94,13 +104,18 @@ default CompletableFuture> fakeOuterBooleanSerialize(@Ap @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default CompletableFuture> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default CompletableFuture> fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -127,13 +142,18 @@ default CompletableFuture> fakeOuterCompositeSeri @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default CompletableFuture> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default CompletableFuture> fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -149,13 +169,18 @@ default CompletableFuture> fakeOuterNumberSerialize(@ @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default CompletableFuture> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default CompletableFuture> fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -171,13 +196,18 @@ default CompletableFuture> fakeOuterStringSerialize(@ApiP @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default CompletableFuture> testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -193,13 +223,22 @@ default CompletableFuture> testBodyWithFileSchema(@ApiParam @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -215,6 +254,7 @@ default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -222,7 +262,11 @@ default CompletableFuture> testBodyWithQueryParams(@NotNull produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default CompletableFuture> testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -266,14 +310,72 @@ default CompletableFuture> testClientModel(@ApiParam(valu @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default CompletableFuture> testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -297,14 +399,48 @@ default CompletableFuture> testEndpointParameters(@ApiParam @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default CompletableFuture> testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -325,12 +461,37 @@ default CompletableFuture> testEnumParameters(@ApiParam(val @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -345,13 +506,18 @@ default CompletableFuture> testGroupParameters(@NotNull @Ap @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default CompletableFuture> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default CompletableFuture> testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -367,13 +533,22 @@ default CompletableFuture> testInlineAdditionalProperties(@ @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default CompletableFuture> testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -393,12 +568,33 @@ default CompletableFuture> testJsonFormData(@ApiParam(value @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -419,6 +615,7 @@ default CompletableFuture> testQueryParameterCollectionForm @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -426,7 +623,19 @@ default CompletableFuture> testQueryParameterCollectionForm produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default CompletableFuture> uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index be711ae318a0..13f9f9bb2fb6 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -44,6 +44,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -51,7 +52,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default CompletableFuture> testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java index 06bc2003b563..9d8d9988d894 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java @@ -47,14 +47,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default CompletableFuture> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -75,13 +81,23 @@ default CompletableFuture> addPet(@ApiParam(value = "Pet ob @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default CompletableFuture> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -102,14 +118,20 @@ default CompletableFuture> deletePet(@ApiParam(value = "Pet @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -147,14 +169,20 @@ default CompletableFuture>> findPetsByStatus(@NotNull @ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -191,15 +219,22 @@ default CompletableFuture>> findPetsByTags(@NotNull @Api @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default CompletableFuture> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -237,16 +272,24 @@ default CompletableFuture> getPetById(@ApiParam(value = "ID @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default CompletableFuture> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -267,13 +310,26 @@ default CompletableFuture> updatePet(@ApiParam(value = "Pet @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default CompletableFuture> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -294,6 +350,7 @@ default CompletableFuture> updatePetWithForm(@ApiParam(valu @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -301,7 +358,19 @@ default CompletableFuture> updatePetWithForm(@ApiParam(valu produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default CompletableFuture> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java index 6c7d2c0cc3c8..25c64ceecbe2 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java @@ -43,13 +43,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default CompletableFuture> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -67,6 +73,7 @@ default CompletableFuture> deleteOrder(@ApiParam(value = "I @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -91,15 +98,22 @@ default CompletableFuture>> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default CompletableFuture> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -131,14 +145,20 @@ default CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default CompletableFuture> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java index 5e9041adc4bf..224268ac4510 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java @@ -42,12 +42,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default CompletableFuture> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -62,12 +67,17 @@ default CompletableFuture> createUser(@ApiParam(value = "Cr @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default CompletableFuture> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -82,12 +92,17 @@ default CompletableFuture> createUsersWithArrayInput(@ApiPa @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default CompletableFuture> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -104,13 +119,19 @@ default CompletableFuture> createUsersWithListInput(@ApiPar @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default CompletableFuture> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -127,15 +148,22 @@ default CompletableFuture> deleteUser(@ApiParam(value = "Th @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default CompletableFuture> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -168,14 +196,24 @@ default CompletableFuture> getUserByName(@ApiParam(value = @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -189,6 +227,7 @@ default CompletableFuture> loginUser(@NotNull @ApiParam(v @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -212,13 +251,23 @@ default CompletableFuture> logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default CompletableFuture> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Animal.java index 8dd1dd124d3a..f2c82f3e6a0e 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java index db1677b34480..0c3fd2d0c222 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java index 7c043481d96e..2f39d2a48f37 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java index 16bbedb032d9..20bd76aecaa9 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0f4d829ecff8..d0fa15f2e80e 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -47,7 +48,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java index 717e0079f53c..784edffd8ca4 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java @@ -49,13 +49,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,13 +76,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,13 +103,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -124,13 +139,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,13 +166,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -168,13 +193,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -190,13 +220,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,6 +251,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -219,7 +259,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -261,14 +305,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -292,14 +394,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,12 +456,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -340,13 +501,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,13 +528,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -388,12 +563,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -414,6 +610,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -421,7 +618,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f607759a0cfb..03dc0acc7e8c 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -50,7 +51,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java index aeb9ffa11ef4..a119c7ac632b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java @@ -46,14 +46,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +80,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,14 +117,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -144,14 +166,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +214,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -230,16 +265,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -260,13 +303,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,6 +343,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -294,7 +351,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java index 00e980b67ee0..6af9606eb3aa 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java @@ -42,13 +42,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +72,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -90,15 +97,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -128,14 +142,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java index 6d5c1ef5f048..10d6b1fb0840 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java @@ -41,12 +41,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,12 +66,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,12 +91,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,13 +118,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,15 +147,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,14 +193,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -186,6 +224,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -209,13 +248,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Animal.java index 8dd1dd124d3a..f2c82f3e6a0e 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java index db1677b34480..0c3fd2d0c222 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java index 7c043481d96e..2f39d2a48f37 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java index 5c8374b2e45d..cb794cf7c10b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(LocalDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index ec0b4939863b..01ebe7245327 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(LocalDateTime dateTi * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java index 9d42ec836a6a..b7a516852ed5 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(LocalDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java index 16bbedb032d9..20bd76aecaa9 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0f4d829ecff8..d0fa15f2e80e 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -47,7 +48,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index ae0b62e430ee..5bcb0139ae49 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -49,13 +49,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,13 +76,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,13 +103,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -124,13 +139,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,13 +166,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -168,13 +193,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -190,13 +220,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,6 +251,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -219,7 +259,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -261,14 +305,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -292,14 +394,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,12 +456,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -340,13 +501,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,13 +528,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -388,12 +563,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -414,6 +610,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -421,7 +618,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f607759a0cfb..03dc0acc7e8c 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -50,7 +51,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java index aeb9ffa11ef4..a119c7ac632b 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -46,14 +46,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +80,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,14 +117,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -144,14 +166,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +214,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -230,16 +265,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -260,13 +303,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,6 +343,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -294,7 +351,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 00e980b67ee0..6af9606eb3aa 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -42,13 +42,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +72,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -90,15 +97,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -128,14 +142,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 6d5c1ef5f048..10d6b1fb0840 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -41,12 +41,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,12 +66,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,12 +91,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,13 +118,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,15 +147,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,14 +193,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -186,6 +224,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -209,13 +248,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 6d6505c1611c..741debc6d5c8 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 250b49d0c083..89f5a326a1e6 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 10a57b65a8a5..fb8c65d89390 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index fdad80ab490c..5c49de9aa177 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -81,7 +80,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -109,7 +108,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -138,7 +137,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -166,7 +165,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -194,7 +193,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -252,7 +251,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 6264911b7f62..d2940dcd3f60 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index f90f6fce85a8..bba602ee9e91 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index b16840f621a2..b1731be9db05 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Animal.java index d69dd4f980a5..668bc51d1be5 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Animal.java @@ -18,7 +18,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -43,7 +42,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -64,7 +63,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 18ba822148bc..5661e2ec217b 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -19,7 +19,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -43,7 +42,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5e835e1a175e..c23842367b03 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -19,7 +19,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -43,7 +42,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java index f53fc16dc060..3ec888afe636 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java @@ -19,7 +19,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -51,7 +50,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -79,7 +78,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -108,7 +107,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java index 1db04b36f451..86fdf24e6223 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java @@ -19,7 +19,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -73,7 +72,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java index d8c3edb360ba..d188afc0122f 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -17,7 +17,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -71,7 +70,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java index 6fe091581e1b..484259e9d15b 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java @@ -16,7 +16,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -46,7 +45,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -66,7 +65,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -86,7 +85,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -106,7 +105,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -126,7 +125,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -146,7 +145,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java index 9167c15218ad..05e368fa614a 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java @@ -18,7 +18,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -33,7 +32,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java index d6b48d464a80..82d68b3bbb17 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java @@ -16,7 +16,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -31,7 +30,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java index bc2767edcf30..91d7fdecfba8 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -16,7 +16,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -34,7 +33,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -54,7 +53,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java index 24a57ea3f813..49665b80c9cf 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java @@ -31,7 +31,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java index a64a0d067cd5..1cd62cba5578 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java @@ -16,7 +16,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -31,7 +30,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java index 777876996de4..85ed6ab9749c 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java @@ -18,7 +18,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -33,7 +32,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java index de5fe578cad7..dc08722441e3 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java @@ -16,7 +16,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -31,7 +30,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java index 74e50242bcd5..432225ed1e25 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java @@ -19,7 +19,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -108,7 +107,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +135,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java index cb57984cb19b..bc71ff3bc2f7 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java @@ -18,7 +18,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -189,7 +188,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -209,7 +208,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -230,7 +229,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +249,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +269,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 46217847f4c0..ca6ed483180f 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -18,7 +18,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -37,7 +36,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -66,7 +65,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java index 6377d22d0c76..765c584b1ce7 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java @@ -21,7 +21,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -79,7 +78,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +100,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +120,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -143,7 +142,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -167,7 +166,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +188,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +208,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -229,7 +228,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -250,7 +249,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -271,7 +270,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -293,7 +292,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -314,7 +313,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +334,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -356,7 +355,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index f5419f19f4b0..b7c61c9eacc0 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -16,7 +16,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -34,7 +33,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -54,7 +53,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java index 308887571277..e1f9541f0d50 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java @@ -20,7 +20,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -91,7 +90,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -120,7 +119,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -148,7 +147,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -176,7 +175,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 4ebde561113e..48c769f5939e 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -22,7 +22,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -45,7 +44,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -66,7 +65,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -95,7 +94,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java index 513c6029234f..f8262ba9cdbf 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java @@ -34,7 +34,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -54,7 +54,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 4c476f018163..605119fc9c32 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -16,7 +16,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -37,7 +36,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -57,7 +56,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -77,7 +76,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java index 0c8859109559..fbee37e63f22 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java @@ -31,7 +31,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java index 5551de4c5438..a94107c9d205 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java @@ -40,7 +40,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -61,7 +61,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -81,7 +81,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -101,7 +101,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java index c1ea4082d1d4..2ce35ee71d17 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java @@ -17,7 +17,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -32,7 +31,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java index 8b202bf55e65..ec0bf9640811 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -18,7 +18,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -86,7 +85,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -106,7 +105,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -126,7 +125,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -146,7 +145,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -167,7 +166,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +186,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java index 7c5760c17c99..da76e2318cab 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java @@ -17,7 +17,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -38,7 +37,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -59,7 +58,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -79,7 +78,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java index 6521708cb7ce..f37a725a9636 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -92,7 +91,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -112,7 +111,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -133,7 +132,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -191,7 +190,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -212,7 +211,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 01e417f322e5..fdc6d8140550 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -16,7 +16,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -34,7 +33,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -54,7 +53,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java index c5e9680abf3e..74acc7ed222a 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -16,7 +16,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -31,7 +30,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java index 2baf81a89f66..e480c097f28d 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -16,7 +16,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -34,7 +33,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -54,7 +53,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 824c9f0925fb..2a0c54ce6f99 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -19,7 +19,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -47,7 +46,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -68,7 +67,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -90,7 +89,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -111,7 +110,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -140,7 +139,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java index dfbb782785c7..0e2a298f6b87 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -19,7 +19,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -50,7 +49,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -71,7 +70,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +92,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -114,7 +113,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -135,7 +134,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -164,7 +163,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java index 1a8141600499..caf611d2303c 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java @@ -16,7 +16,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -52,7 +51,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -72,7 +71,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -92,7 +91,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -112,7 +111,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -132,7 +131,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -152,7 +151,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -172,7 +171,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -192,7 +191,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java index 4edaa257ef43..894569dc1181 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java @@ -19,7 +19,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -127,7 +126,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -147,7 +146,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -168,7 +167,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +187,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +215,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -236,7 +235,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -256,7 +255,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -277,7 +276,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +296,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +324,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -353,7 +352,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -373,7 +372,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -393,7 +392,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -414,7 +413,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +433,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +461,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -490,7 +489,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -510,7 +509,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -530,7 +529,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -551,7 +550,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +570,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +598,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -627,7 +626,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -647,7 +646,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +666,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -688,7 +687,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +707,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +735,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -764,7 +763,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0f4d829ecff8..d0fa15f2e80e 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -47,7 +48,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index b83c2c79446f..e9ba2a82df45 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -49,13 +49,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,13 +76,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,13 +103,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -124,13 +139,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,13 +166,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -168,13 +193,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -190,13 +220,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,6 +251,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -219,7 +259,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -261,14 +305,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -292,14 +394,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,12 +456,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -340,13 +501,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,13 +528,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -388,12 +563,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -414,6 +610,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -421,7 +618,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f607759a0cfb..03dc0acc7e8c 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -50,7 +51,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index db1ee6874e5d..8a73c19222c9 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -45,14 +45,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -73,13 +79,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -100,14 +116,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -143,14 +165,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -185,15 +213,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -229,16 +264,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,13 +302,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -286,6 +342,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -293,7 +350,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 00e980b67ee0..6af9606eb3aa 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -42,13 +42,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +72,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -90,15 +97,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -128,14 +142,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 6d5c1ef5f048..10d6b1fb0840 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -41,12 +41,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,12 +66,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,12 +91,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,13 +118,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,15 +147,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,14 +193,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -186,6 +224,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -209,13 +248,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Animal.java index 3fd8af44b1d3..b3aaa09c9fa0 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -43,7 +42,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -64,7 +63,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java index 16cd1e6e7e5d..c7dcedc99ca7 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -22,7 +22,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -91,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -111,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -132,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -158,7 +157,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -187,7 +186,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -208,7 +207,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0f4d829ecff8..d0fa15f2e80e 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -47,7 +48,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java index ae0b62e430ee..5bcb0139ae49 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java @@ -49,13 +49,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,13 +76,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,13 +103,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -124,13 +139,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,13 +166,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -168,13 +193,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -190,13 +220,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,6 +251,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -219,7 +259,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -261,14 +305,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -292,14 +394,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,12 +456,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -340,13 +501,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,13 +528,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -388,12 +563,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -414,6 +610,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -421,7 +618,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f607759a0cfb..03dc0acc7e8c 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -50,7 +51,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java index aeb9ffa11ef4..a119c7ac632b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java @@ -46,14 +46,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +80,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,14 +117,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -144,14 +166,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +214,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -230,16 +265,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -260,13 +303,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,6 +343,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -294,7 +351,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java index 00e980b67ee0..6af9606eb3aa 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java @@ -42,13 +42,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +72,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -90,15 +97,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -128,14 +142,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java index 6d5c1ef5f048..10d6b1fb0840 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java @@ -41,12 +41,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,12 +66,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,12 +91,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,13 +118,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,15 +147,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,14 +193,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -186,6 +224,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -209,13 +248,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 2301d1da5095..5b88f3fca4ed 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -36,7 +35,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index e42e14353a50..1cb35cededf6 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -37,7 +36,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index b03b31553889..f920d00e96bd 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -36,7 +35,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 5e2ba751d12b..0fad84c07673 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -84,7 +83,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -112,7 +111,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -141,7 +140,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -169,7 +168,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -197,7 +196,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -255,7 +254,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 33944749ec47..74d5a17eb85f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -46,7 +45,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java index 4774ea9ad1a9..3806fef8cf2b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -54,7 +53,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -82,7 +81,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -111,7 +110,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java index 9035cec18b40..756ef3b3af56 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -77,7 +76,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java index 70ddab2979f4..8c45c9650927 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -75,7 +74,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java index 5e9b9028d0a4..8ad670d2cd9a 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -49,7 +48,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -69,7 +68,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -89,7 +88,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -109,7 +108,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -129,7 +128,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -149,7 +148,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java index 6cd52a9a30e9..d19e6430c4e5 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -36,7 +35,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java index 20514c420c17..7d22a598ba55 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -34,7 +33,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java index 982543f88a23..f804ea7abe25 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -37,7 +36,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -57,7 +56,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java index f74c32f05c74..dfa45fc506a0 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java @@ -34,7 +34,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java index 2f1f03a97526..f6c7fd9c70e2 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -34,7 +33,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java index ed0aeae42000..af8adf6bda0e 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -36,7 +35,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java index af34c100a344..7400f4dfe07b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -34,7 +33,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java index 0e11665c8823..03b036a3eade 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -113,7 +112,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -141,7 +140,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java index 74eb395a3e3f..1d12b2e5bed2 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -196,7 +195,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -216,7 +215,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -237,7 +236,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -257,7 +256,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -277,7 +276,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java index ae8b67935340..dd46cc423444 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -40,7 +39,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -69,7 +68,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java index 16cb1b3050a7..66733ea886a9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -82,7 +81,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -104,7 +103,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -124,7 +123,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -146,7 +145,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -170,7 +169,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -192,7 +191,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -212,7 +211,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -232,7 +231,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -253,7 +252,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -274,7 +273,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -296,7 +295,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -317,7 +316,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -338,7 +337,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -359,7 +358,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index abd4baba4f25..090d40df5b3f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -37,7 +36,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -57,7 +56,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java index 34f1cfa59509..f1dd7a853b9f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -95,7 +94,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -124,7 +123,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -152,7 +151,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -180,7 +179,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 8811024cce24..0c8c43fa5ac4 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -48,7 +47,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -69,7 +68,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -98,7 +97,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java index f74c29e604cf..852061e39c4b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java @@ -37,7 +37,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -57,7 +57,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java index 1f7b73a77362..80c1e944ad81 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -40,7 +39,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -60,7 +59,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -80,7 +79,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java index d17a0da84c8f..cc2b4f37b72b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java @@ -34,7 +34,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java index c5882dc983a9..f3ecfc19cafa 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java @@ -43,7 +43,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -64,7 +64,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -84,7 +84,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -104,7 +104,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java index c660b0b40308..3c46e1dd9c52 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -35,7 +34,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java index cabfdf274c31..0cbaa7076cb9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -90,7 +89,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -110,7 +109,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -130,7 +129,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -150,7 +149,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -171,7 +170,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -191,7 +190,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java index f1520fadfe6e..6a253d99242e 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -41,7 +40,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -62,7 +61,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -82,7 +81,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java index 60c026973485..6f80dc8ff53a 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -96,7 +95,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -116,7 +115,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -137,7 +136,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -163,7 +162,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -192,7 +191,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -213,7 +212,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 5392f5f3c5cc..439afeea5cab 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -37,7 +36,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -57,7 +56,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java index 352150b1c53b..732ba03c5131 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -34,7 +33,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java index a0962debf187..61b2497b62c9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -37,7 +36,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -57,7 +56,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java index c1670e5c661a..f3da11ff88a1 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -50,7 +49,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -71,7 +70,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -93,7 +92,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -114,7 +113,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -140,7 +139,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java index eef616a2f828..32b85b2db0f6 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -53,7 +52,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -74,7 +73,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -96,7 +95,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -117,7 +116,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -164,7 +163,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java index 06af2c2695e2..4d5cc446712e 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -55,7 +54,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -75,7 +74,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -95,7 +94,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -115,7 +114,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -135,7 +134,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -155,7 +154,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -175,7 +174,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -195,7 +194,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java index fb430f7f5e90..2d3a4dfcc814 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")@com.fasterxml.jackson.annotation.JsonFilter(value = "filter-name") @com.fasterxml.jackson.annotation.JsonIgnoreProperties(value = "id") @@ -130,7 +129,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -150,7 +149,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -171,7 +170,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -191,7 +190,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -219,7 +218,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -239,7 +238,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -259,7 +258,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -280,7 +279,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -300,7 +299,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -328,7 +327,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -356,7 +355,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -376,7 +375,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -396,7 +395,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -417,7 +416,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -437,7 +436,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -465,7 +464,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -493,7 +492,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -513,7 +512,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -533,7 +532,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -554,7 +553,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -574,7 +573,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -602,7 +601,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -630,7 +629,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -650,7 +649,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -670,7 +669,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -691,7 +690,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -711,7 +710,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -739,7 +738,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -767,7 +766,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 2f55eacc9eae..a9e0d198b1d1 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -32,6 +32,7 @@ public interface AnotherFakeApi { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -39,6 +40,10 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 2e0af3fc11b8..cad46630a33e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -41,7 +41,11 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 14b43cd8ed61..8ce69eb444c5 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -41,13 +41,18 @@ public interface FakeApi { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +); /** @@ -60,13 +65,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +); /** @@ -79,13 +89,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +); /** @@ -98,13 +113,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +); /** @@ -117,13 +137,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +); /** @@ -136,13 +161,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +); /** @@ -155,13 +185,22 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +); /** @@ -174,6 +213,7 @@ public interface FakeApi { @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -181,7 +221,11 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); /** @@ -211,14 +255,72 @@ public interface FakeApi { @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -239,14 +341,48 @@ public interface FakeApi { @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -264,12 +400,37 @@ public interface FakeApi { @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +); /** @@ -281,13 +442,18 @@ public interface FakeApi { @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +); /** @@ -300,13 +466,22 @@ public interface FakeApi { @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -323,12 +498,33 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +); /** @@ -346,6 +542,7 @@ public interface FakeApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -353,6 +550,18 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java index c05e348d413f..56685918f5d7 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java @@ -50,7 +50,11 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,7 +67,11 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -76,7 +84,11 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -96,7 +108,11 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -109,7 +125,11 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -122,7 +142,11 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,7 +159,15 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -148,7 +180,11 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -182,7 +218,63 @@ public ResponseEntity testClientModel(@ApiParam(value = "client model" , * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -203,7 +295,39 @@ public ResponseEntity testEndpointParameters(@ApiParam(value = "None", req * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -221,7 +345,31 @@ public ResponseEntity testEnumParameters(@ApiParam(value = "Header paramet * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -233,7 +381,11 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -246,7 +398,15 @@ public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "re * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -263,7 +423,27 @@ public ResponseEntity testJsonFormData(@ApiParam(value = "field1", require * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -277,7 +457,19 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index e7b7252ae2e5..51d647e3e610 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -35,6 +35,7 @@ public interface FakeClassnameTestApi { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -42,6 +43,10 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index bf34d83297ee..6e326ba96237 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -41,7 +41,11 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 5dddaadecc71..91dd5c9e4ff3 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -38,14 +38,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -63,13 +69,23 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -87,14 +103,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +); /** @@ -113,14 +135,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +); /** @@ -138,15 +166,22 @@ public interface PetApi { @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -165,16 +200,24 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -192,13 +235,26 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -216,6 +272,7 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -223,6 +280,18 @@ public interface PetApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java index cd559c767d71..b7336c5f7219 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java @@ -43,7 +43,11 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -57,7 +61,15 @@ public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to b * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + public ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,7 +83,11 @@ public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requi * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -98,7 +114,11 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -125,7 +145,11 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + public ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -152,7 +176,11 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",re * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -166,7 +194,19 @@ public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs t * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -180,7 +220,19 @@ public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index a93d2a2b20da..bc43347c9308 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -34,13 +34,19 @@ public interface StoreApi { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); + ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +); /** @@ -55,6 +61,7 @@ public interface StoreApi { @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -76,15 +83,22 @@ public interface StoreApi { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); + ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +); /** @@ -97,13 +111,19 @@ public interface StoreApi { @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java index 4f0f16bb9b71..833ece720826 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java @@ -43,7 +43,11 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + public ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -70,7 +74,11 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + public ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -95,7 +103,11 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java index a4e3155f63b7..b734f786f6ed 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -33,12 +33,17 @@ public interface UserApi { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -50,12 +55,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -67,12 +77,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -86,13 +101,19 @@ public interface UserApi { @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -106,15 +127,22 @@ public interface UserApi { @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -128,14 +156,24 @@ public interface UserApi { @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -146,6 +184,7 @@ public interface UserApi { @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -166,12 +205,22 @@ public interface UserApi { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java index 94ea640fd226..5a85b48d7d4c 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java @@ -42,7 +42,11 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -54,7 +58,11 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object" , * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,7 +74,11 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -80,7 +92,11 @@ public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + public ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,7 +110,11 @@ public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + public ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -120,7 +140,15 @@ public ResponseEntity getUserByName(@ApiParam(value = "The name that needs * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,7 +174,15 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 3f973de184af..99d28975ec64 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -17,7 +17,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -32,7 +31,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 45627a0b0dfc..4f333f454c81 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index fd33542eaa4a..ba640d064fc6 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -17,7 +17,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -32,7 +31,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 582981d9e4da..167fe710b06f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -80,7 +79,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -108,7 +107,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -137,7 +136,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -165,7 +164,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -193,7 +192,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -251,7 +250,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -32,7 +31,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 24124ba388e1..54fea28df41d 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 01fe5de8d21f..378b46fa34e3 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -17,7 +17,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -32,7 +31,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 5ef16f06089a..5b0ec82d3de1 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -17,7 +17,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -32,7 +31,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Animal.java index ad0911728b0f..07744da5e168 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Animal.java @@ -17,7 +17,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -42,7 +41,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -63,7 +62,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index a0785bc311bd..85b941c1bd04 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -18,7 +18,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -42,7 +41,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 305d698923e6..e61a3d7e3f6f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -18,7 +18,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -42,7 +41,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java index 0a4cab313f8f..3e56d5f3461a 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java @@ -18,7 +18,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -50,7 +49,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -78,7 +77,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -107,7 +106,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java index 3069741a8f29..5d1d494d09df 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java @@ -18,7 +18,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -72,7 +71,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java index 4869217cd511..1a63a9b9b0fb 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -16,7 +16,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -70,7 +69,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java index 03798bccd5ff..06b0502d35cc 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java @@ -15,7 +15,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -45,7 +44,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -65,7 +64,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -85,7 +84,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -105,7 +104,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -125,7 +124,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -145,7 +144,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java index c22d5479d9ad..a5495ddbd94a 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java @@ -17,7 +17,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java index 3b8461ca67f5..1f4e2ef26124 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java @@ -15,7 +15,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -30,7 +29,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java index 764a3cde53d5..cafa1799f747 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -15,7 +15,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -33,7 +32,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -53,7 +52,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java index 314cec6e2053..3fdd6e348c42 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java @@ -30,7 +30,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java index 63d30b86df51..47b131b4f380 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java @@ -15,7 +15,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -30,7 +29,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java index 3e79b5cda849..0935fb8ef985 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java @@ -17,7 +17,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -32,7 +31,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java index 283d366f4e36..7a4ac5521dd3 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java @@ -15,7 +15,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -30,7 +29,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java index fbcbbc9d61bd..8910b4ab3de8 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java @@ -18,7 +18,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -107,7 +106,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -135,7 +134,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java index 5ddf8861a0c1..37673e6f547e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java @@ -17,7 +17,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -188,7 +187,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -208,7 +207,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -229,7 +228,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -249,7 +248,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -269,7 +268,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 5c213959cbaa..e3714a6fd2fc 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -36,7 +35,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -65,7 +64,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java index a21122f3b339..d1b0f0e54a72 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java @@ -20,7 +20,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -78,7 +77,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -100,7 +99,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -120,7 +119,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -142,7 +141,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -166,7 +165,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -188,7 +187,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -208,7 +207,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -228,7 +227,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -249,7 +248,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -270,7 +269,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -292,7 +291,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -313,7 +312,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -334,7 +333,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -355,7 +354,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 11cbaac5d035..da7840984684 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -15,7 +15,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -33,7 +32,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -53,7 +52,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java index 994b93facb71..11ef5cad0672 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java @@ -19,7 +19,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -90,7 +89,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -119,7 +118,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -147,7 +146,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -175,7 +174,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 85f8fef1e7b2..119b8c866036 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -44,7 +43,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -65,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -94,7 +93,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java index a523a095a0d0..ebd7a9823099 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java @@ -33,7 +33,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -53,7 +53,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 070916aae78e..9a3c22f5f0ac 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -15,7 +15,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -36,7 +35,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -56,7 +55,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -76,7 +75,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java index 2887e82ae242..d4f16862203a 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java @@ -30,7 +30,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java index e90e446667d0..dfe50ca29389 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java @@ -39,7 +39,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -60,7 +60,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -80,7 +80,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -100,7 +100,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java index ee8ed1d5d22c..e233983bce89 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java @@ -16,7 +16,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -31,7 +30,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java index 6773f15e1ccc..54b586fbf07e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -17,7 +17,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -85,7 +84,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -105,7 +104,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -125,7 +124,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -145,7 +144,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -166,7 +165,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -186,7 +185,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java index f73144c6de5d..1e0361ed5519 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java @@ -16,7 +16,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -37,7 +36,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -58,7 +57,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -78,7 +77,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java index 7a343a524467..425ec458fb3e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -22,7 +22,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -91,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -111,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -132,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -161,7 +160,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -190,7 +189,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -211,7 +210,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 52ab83712816..d089c6946ea7 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -15,7 +15,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -33,7 +32,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -53,7 +52,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java index 49d10009704b..ad0ad2e672f9 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -15,7 +15,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -30,7 +29,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java index 0cd2a1c97485..a39aaa7ec68b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -15,7 +15,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -33,7 +32,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -53,7 +52,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 45701a091670..2d0afd16400b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -18,7 +18,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -46,7 +45,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -67,7 +66,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -89,7 +88,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -110,7 +109,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -139,7 +138,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java index ef0dab478ceb..8a00c61cfcac 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -18,7 +18,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -49,7 +48,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -70,7 +69,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -92,7 +91,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -113,7 +112,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -134,7 +133,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -163,7 +162,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java index 09bf487c497b..ddd5f9d46278 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java @@ -15,7 +15,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -51,7 +50,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -71,7 +70,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -91,7 +90,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -111,7 +110,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -131,7 +130,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -151,7 +150,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -171,7 +170,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -191,7 +190,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java index 4f68e2db608f..88e5d6e8f740 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java @@ -18,7 +18,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -126,7 +125,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -146,7 +145,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -167,7 +166,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -187,7 +186,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -215,7 +214,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -235,7 +234,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -255,7 +254,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -276,7 +275,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -296,7 +295,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -324,7 +323,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -352,7 +351,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -372,7 +371,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -392,7 +391,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -413,7 +412,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -433,7 +432,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -461,7 +460,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -489,7 +488,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -509,7 +508,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -529,7 +528,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -550,7 +549,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -570,7 +569,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -598,7 +597,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -626,7 +625,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -646,7 +645,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -666,7 +665,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -687,7 +686,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -707,7 +706,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -735,7 +734,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -763,7 +762,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0f4d829ecff8..d0fa15f2e80e 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -47,7 +48,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index ae0b62e430ee..5bcb0139ae49 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -49,13 +49,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,13 +76,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,13 +103,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -124,13 +139,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,13 +166,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -168,13 +193,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -190,13 +220,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,6 +251,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -219,7 +259,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -261,14 +305,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -292,14 +394,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,12 +456,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -340,13 +501,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,13 +528,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -388,12 +563,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -414,6 +610,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -421,7 +618,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f607759a0cfb..03dc0acc7e8c 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -50,7 +51,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java index aeb9ffa11ef4..a119c7ac632b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java @@ -46,14 +46,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +80,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,14 +117,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -144,14 +166,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +214,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -230,16 +265,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -260,13 +303,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,6 +343,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -294,7 +351,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java index 00e980b67ee0..6af9606eb3aa 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java @@ -42,13 +42,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +72,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -90,15 +97,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -128,14 +142,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java index 6d5c1ef5f048..10d6b1fb0840 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java @@ -41,12 +41,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,12 +66,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,12 +91,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,13 +118,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,15 +147,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,14 +193,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -186,6 +224,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -209,13 +248,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Animal.java index 8dd1dd124d3a..f2c82f3e6a0e 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java index db1677b34480..0c3fd2d0c222 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java index 7c043481d96e..2f39d2a48f37 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java index 16bbedb032d9..20bd76aecaa9 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 4241c5e0d559..69b1e7b57036 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -36,6 +36,7 @@ default AnotherFakeApiDelegate getDelegate() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -43,7 +44,11 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index 737f9f95f5cb..d972875fcc08 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -45,13 +45,18 @@ default FakeApiDelegate getDelegate() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return getDelegate().createXmlItem(xmlItem); } @@ -66,13 +71,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -87,13 +97,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -108,13 +123,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -129,13 +149,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return getDelegate().fakeOuterStringSerialize(body); } @@ -150,13 +175,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return getDelegate().testBodyWithFileSchema(body); } @@ -171,13 +201,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -192,6 +231,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -199,7 +239,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClientModel(body); } @@ -231,14 +275,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -261,14 +363,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -288,12 +424,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -307,13 +468,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return getDelegate().testInlineAdditionalProperties(param); } @@ -328,13 +494,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -353,12 +528,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -378,6 +574,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -385,7 +582,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index c0bbd76fb7d9..f924491dc105 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -39,6 +39,7 @@ default FakeClassnameTestApiDelegate getDelegate() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -46,7 +47,11 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java index e99a263c59dc..26a6d3af3446 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java @@ -42,14 +42,20 @@ default PetApiDelegate getDelegate() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().addPet(body); } @@ -69,13 +75,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return getDelegate().deletePet(petId, apiKey); } @@ -95,14 +111,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { return getDelegate().findPetsByStatus(status); } @@ -123,14 +145,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { return getDelegate().findPetsByTags(tags); } @@ -150,15 +178,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return getDelegate().getPetById(petId); } @@ -179,16 +214,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().updatePet(body); } @@ -208,13 +251,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -234,6 +290,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -241,7 +298,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java index c7b41c2c7491..5eba2ee2aad5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -38,13 +38,19 @@ default StoreApiDelegate getDelegate() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return getDelegate().deleteOrder(orderId); } @@ -61,6 +67,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -84,15 +91,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return getDelegate().getOrderById(orderId); } @@ -107,14 +121,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java index 2c50012b880b..9b91f2707756 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java @@ -37,12 +37,17 @@ default UserApiDelegate getDelegate() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().createUser(body); } @@ -56,12 +61,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithArrayInput(body); } @@ -75,12 +85,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithListInput(body); } @@ -96,13 +111,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return getDelegate().deleteUser(username); } @@ -118,15 +139,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return getDelegate().getUserByName(username); } @@ -142,14 +170,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return getDelegate().loginUser(username, password); } @@ -162,6 +200,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -184,13 +223,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Animal.java index 8dd1dd124d3a..f2c82f3e6a0e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java index db1677b34480..0c3fd2d0c222 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java index 7c043481d96e..2f39d2a48f37 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java index 16bbedb032d9..20bd76aecaa9 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java index 4241c5e0d559..69b1e7b57036 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -36,6 +36,7 @@ default AnotherFakeApiDelegate getDelegate() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -43,7 +44,11 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index 737f9f95f5cb..d972875fcc08 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -45,13 +45,18 @@ default FakeApiDelegate getDelegate() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return getDelegate().createXmlItem(xmlItem); } @@ -66,13 +71,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -87,13 +97,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -108,13 +123,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -129,13 +149,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return getDelegate().fakeOuterStringSerialize(body); } @@ -150,13 +175,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return getDelegate().testBodyWithFileSchema(body); } @@ -171,13 +201,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -192,6 +231,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -199,7 +239,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClientModel(body); } @@ -231,14 +275,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -261,14 +363,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -288,12 +424,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -307,13 +468,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return getDelegate().testInlineAdditionalProperties(param); } @@ -328,13 +494,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -353,12 +528,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -378,6 +574,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -385,7 +582,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index c0bbd76fb7d9..f924491dc105 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -39,6 +39,7 @@ default FakeClassnameTestApiDelegate getDelegate() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -46,7 +47,11 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java index e99a263c59dc..26a6d3af3446 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java @@ -42,14 +42,20 @@ default PetApiDelegate getDelegate() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().addPet(body); } @@ -69,13 +75,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return getDelegate().deletePet(petId, apiKey); } @@ -95,14 +111,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { return getDelegate().findPetsByStatus(status); } @@ -123,14 +145,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { return getDelegate().findPetsByTags(tags); } @@ -150,15 +178,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return getDelegate().getPetById(petId); } @@ -179,16 +214,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().updatePet(body); } @@ -208,13 +251,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -234,6 +290,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -241,7 +298,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java index c7b41c2c7491..5eba2ee2aad5 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java @@ -38,13 +38,19 @@ default StoreApiDelegate getDelegate() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return getDelegate().deleteOrder(orderId); } @@ -61,6 +67,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -84,15 +91,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return getDelegate().getOrderById(orderId); } @@ -107,14 +121,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java index 2c50012b880b..9b91f2707756 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java @@ -37,12 +37,17 @@ default UserApiDelegate getDelegate() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().createUser(body); } @@ -56,12 +61,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithArrayInput(body); } @@ -75,12 +85,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithListInput(body); } @@ -96,13 +111,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return getDelegate().deleteUser(username); } @@ -118,15 +139,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return getDelegate().getUserByName(username); } @@ -142,14 +170,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return getDelegate().loginUser(username, password); } @@ -162,6 +200,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -184,13 +223,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Animal.java index 8dd1dd124d3a..f2c82f3e6a0e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java index db1677b34480..0c3fd2d0c222 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java index 7c043481d96e..2f39d2a48f37 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java index 16bbedb032d9..20bd76aecaa9 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java index 97febecf6ef5..1b5d69c26c5c 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @ApiImplicitParams({ }) @@ -49,7 +50,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index 2e176ee9a231..bc242f45bf65 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -49,6 +49,7 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @ApiImplicitParams({ }) @@ -57,7 +58,11 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -73,6 +78,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @ApiImplicitParams({ }) @@ -81,7 +87,11 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,6 +107,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @ApiImplicitParams({ }) @@ -105,7 +116,11 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -130,6 +145,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @ApiImplicitParams({ }) @@ -138,7 +154,11 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -154,6 +174,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @ApiImplicitParams({ }) @@ -162,7 +183,11 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -178,6 +203,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @ApiImplicitParams({ }) @@ -186,7 +212,11 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,6 +232,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @ApiImplicitParams({ }) @@ -210,7 +241,15 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,6 +265,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @ApiImplicitParams({ }) @@ -235,7 +275,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,7 +321,9 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @ApiImplicitParams({ }) @@ -286,7 +332,63 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -308,7 +410,9 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @ApiImplicitParams({ @ApiImplicitParam(name = "enumHeaderStringArray", value = "Header parameter enum test (string array)", dataType = "List", paramType = "header"), @@ -319,7 +423,31 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -338,6 +466,7 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Query paramet @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @ApiImplicitParams({ @ApiImplicitParam(name = "requiredBooleanGroup", value = "Required Boolean in group parameters", required=true, dataType = "Boolean", paramType = "header"), @@ -347,7 +476,23 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Query paramet method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,6 +507,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @ApiImplicitParams({ }) @@ -370,7 +516,11 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -386,6 +536,7 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @ApiImplicitParams({ }) @@ -394,7 +545,15 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -414,6 +573,7 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @ApiImplicitParams({ }) @@ -421,7 +581,27 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -442,6 +622,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @ApiImplicitParams({ }) @@ -451,7 +632,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b5bb6f3eb1df..bd3f7d95c8fb 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @ApiImplicitParams({ }) @@ -52,7 +53,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java index 3aee209117ee..5198fde3fbee 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @ApiImplicitParams({ }) @@ -55,7 +57,11 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -75,7 +81,9 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @ApiImplicitParams({ @ApiImplicitParam(name = "apiKey", value = "", dataType = "String", paramType = "header") @@ -84,7 +92,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -105,7 +117,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @ApiImplicitParams({ }) @@ -114,7 +128,11 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -150,7 +168,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @ApiImplicitParams({ }) @@ -159,7 +179,11 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -194,8 +218,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @ApiImplicitParams({ }) @@ -204,7 +231,11 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -240,9 +271,13 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @ApiImplicitParams({ }) @@ -251,7 +286,11 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -272,6 +311,7 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @ApiImplicitParams({ }) @@ -280,7 +320,19 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -301,6 +353,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @ApiImplicitParams({ }) @@ -310,7 +363,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java index cce3a0d63022..f8f8bf43a4b5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java @@ -42,7 +42,9 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @ApiImplicitParams({ }) @@ -50,7 +52,11 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -68,6 +74,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @ApiImplicitParams({ }) @@ -94,8 +101,11 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @ApiImplicitParams({ }) @@ -104,7 +114,11 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -134,7 +148,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @ApiImplicitParams({ }) @@ -143,7 +159,11 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java index 376cda52fd64..4b335657d1c9 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java @@ -41,6 +41,7 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @ApiImplicitParams({ }) @@ -48,7 +49,11 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,6 +68,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @ApiImplicitParams({ }) @@ -70,7 +76,11 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -85,6 +95,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @ApiImplicitParams({ }) @@ -92,7 +103,11 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -109,7 +124,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @ApiImplicitParams({ }) @@ -117,7 +134,11 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -134,8 +155,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @ApiImplicitParams({ }) @@ -144,7 +168,11 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -175,7 +203,9 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @ApiImplicitParams({ }) @@ -184,7 +214,15 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -198,6 +236,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @ApiImplicitParams({ }) @@ -223,7 +262,9 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @ApiImplicitParams({ }) @@ -231,7 +272,15 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Animal.java index 8dd1dd124d3a..f2c82f3e6a0e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java index db1677b34480..0c3fd2d0c222 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java index 7c043481d96e..2f39d2a48f37 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java index 16bbedb032d9..20bd76aecaa9 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java index dac5d349c38c..ff7ad9a77f14 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -39,6 +39,7 @@ default AnotherFakeApiDelegate getDelegate() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -46,7 +47,11 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().call123testSpecialTags(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index e1edc9148db8..47261d272ab7 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -48,13 +48,18 @@ default FakeApiDelegate getDelegate() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default Mono> createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody Mono xmlItem, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody Mono xmlItem +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createXmlItem(xmlItem, exchange); } @@ -69,13 +74,18 @@ default Mono> createXmlItem(@ApiParam(value = "XmlItem Body @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default Mono> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterBooleanSerialize(body, exchange); } @@ -90,13 +100,18 @@ default Mono> fakeOuterBooleanSerialize(@ApiParam(value @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default Mono> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterCompositeSerialize(body, exchange); } @@ -111,13 +126,18 @@ default Mono> fakeOuterCompositeSerialize(@ApiPar @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default Mono> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterNumberSerialize(body, exchange); } @@ -132,13 +152,18 @@ default Mono> fakeOuterNumberSerialize(@ApiParam(valu @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default Mono> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterStringSerialize(body, exchange); } @@ -153,13 +178,18 @@ default Mono> fakeOuterStringSerialize(@ApiParam(value = @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default Mono> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithFileSchema(body, exchange); } @@ -174,13 +204,22 @@ default Mono> testBodyWithFileSchema(@ApiParam(value = "" , @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithQueryParams(query, body, exchange); } @@ -195,6 +234,7 @@ default Mono> testBodyWithQueryParams(@NotNull @ApiParam(va @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -202,7 +242,11 @@ default Mono> testBodyWithQueryParams(@NotNull @ApiParam(va produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClientModel(body, exchange); } @@ -234,14 +278,72 @@ default Mono> testClientModel(@ApiParam(value = "client m @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, exchange); } @@ -264,14 +366,48 @@ default Mono> testEndpointParameters(@ApiParam(value = "Non @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, exchange); } @@ -291,12 +427,37 @@ default Mono> testEnumParameters(@ApiParam(value = "Header @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, exchange); } @@ -310,13 +471,18 @@ default Mono> testGroupParameters(@NotNull @ApiParam(value @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default Mono> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono> param, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono> param +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testInlineAdditionalProperties(param, exchange); } @@ -331,13 +497,22 @@ default Mono> testInlineAdditionalProperties(@ApiParam(valu @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testJsonFormData(param, param2, exchange); } @@ -356,12 +531,33 @@ default Mono> testJsonFormData(@ApiParam(value = "field1", @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, exchange); } @@ -381,6 +577,7 @@ default Mono> testQueryParameterCollectionFormat(@NotNull @ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -388,7 +585,19 @@ default Mono> testQueryParameterCollectionFormat(@NotNull @ produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 4f2a7d4cc9ff..b90b20bb2ce2 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -42,6 +42,7 @@ default FakeClassnameTestApiDelegate getDelegate() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -49,7 +50,11 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClassname(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java index 0ebe6e0896d0..d963eeeb9ee6 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java @@ -45,14 +45,20 @@ default PetApiDelegate getDelegate() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().addPet(body, exchange); } @@ -72,13 +78,23 @@ default Mono> addPet(@ApiParam(value = "Pet object that nee @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default Mono> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deletePet(petId, apiKey, exchange); } @@ -98,14 +114,20 @@ default Mono> deletePet(@ApiParam(value = "Pet id to delete @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByStatus(status, exchange); } @@ -126,14 +148,20 @@ default Mono>> findPetsByStatus(@NotNull @ApiParam(valu @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags, @ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByTags(tags, exchange); } @@ -153,15 +181,22 @@ default Mono>> findPetsByTags(@NotNull @ApiParam(value @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default Mono> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getPetById(petId, exchange); } @@ -182,16 +217,24 @@ default Mono> getPetById(@ApiParam(value = "ID of pet to ret @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePet(body, exchange); } @@ -211,13 +254,26 @@ default Mono> updatePet(@ApiParam(value = "Pet object that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePetWithForm(petId, name, status, exchange); } @@ -237,6 +293,7 @@ default Mono> updatePetWithForm(@ApiParam(value = "ID of pe @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -244,7 +301,19 @@ default Mono> updatePetWithForm(@ApiParam(value = "ID of pe produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFile(petId, additionalMetadata, file, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java index 097c67521e9e..08d93cc844bf 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java @@ -41,13 +41,19 @@ default StoreApiDelegate getDelegate() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default Mono> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteOrder(orderId, exchange); } @@ -64,6 +70,7 @@ default Mono> deleteOrder(@ApiParam(value = "ID of the orde @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -87,15 +94,22 @@ default Mono>> getInventory(@ApiIgnore final @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getOrderById(orderId, exchange); } @@ -110,14 +124,20 @@ default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(val @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default Mono> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().placeOrder(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java index 42fa6705ee9f..186fef24a4e7 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java @@ -40,12 +40,17 @@ default UserApiDelegate getDelegate() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default Mono> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUser(body, exchange); } @@ -59,12 +64,17 @@ default Mono> createUser(@ApiParam(value = "Created user ob @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default Mono> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithArrayInput(body, exchange); } @@ -78,12 +88,17 @@ default Mono> createUsersWithArrayInput(@ApiParam(value = " @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default Mono> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithListInput(body, exchange); } @@ -99,13 +114,19 @@ default Mono> createUsersWithListInput(@ApiParam(value = "L @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default Mono> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteUser(username, exchange); } @@ -121,15 +142,22 @@ default Mono> deleteUser(@ApiParam(value = "The name that n @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default Mono> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getUserByName(username, exchange); } @@ -145,14 +173,24 @@ default Mono> getUserByName(@ApiParam(value = "The name tha @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password, @ApiIgnore final ServerWebExchange exchange) { + default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().loginUser(username, password, exchange); } @@ -165,6 +203,7 @@ default Mono> loginUser(@NotNull @ApiParam(value = "The u @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -187,13 +226,23 @@ default Mono> logoutUser(@ApiIgnore final ServerWebExchange @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default Mono> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono body +, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updateUser(username, body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Animal.java index 8dd1dd124d3a..f2c82f3e6a0e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java index db1677b34480..0c3fd2d0c222 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java index 7c043481d96e..2f39d2a48f37 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java index 16bbedb032d9..20bd76aecaa9 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 2f55eacc9eae..a9e0d198b1d1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -32,6 +32,7 @@ public interface AnotherFakeApi { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -39,6 +40,10 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 82d2ed7cec00..d2397089c859 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -39,7 +39,11 @@ public AnotherFakeApiController(@org.springframework.beans.factory.annotation.Au * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return delegate.call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index b8029605729f..a837895554f3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -41,13 +41,18 @@ public interface FakeApi { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +); /** @@ -60,13 +65,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +); /** @@ -79,13 +89,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +); /** @@ -98,13 +113,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +); /** @@ -117,13 +137,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +); /** @@ -136,13 +161,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +); /** @@ -155,13 +185,22 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +); /** @@ -174,6 +213,7 @@ public interface FakeApi { @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -181,7 +221,11 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); /** @@ -211,14 +255,72 @@ public interface FakeApi { @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -239,14 +341,48 @@ public interface FakeApi { @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -264,12 +400,37 @@ public interface FakeApi { @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +); /** @@ -281,13 +442,18 @@ public interface FakeApi { @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +); /** @@ -300,13 +466,22 @@ public interface FakeApi { @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -323,12 +498,33 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +); /** @@ -346,6 +542,7 @@ public interface FakeApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -353,6 +550,18 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 6e088985cf24..5bf25bc8db21 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -48,7 +48,11 @@ public FakeApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return delegate.createXmlItem(xmlItem); } @@ -60,7 +64,11 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return delegate.fakeOuterBooleanSerialize(body); } @@ -72,7 +80,11 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return delegate.fakeOuterCompositeSerialize(body); } @@ -84,7 +96,11 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return delegate.fakeOuterNumberSerialize(body); } @@ -96,7 +112,11 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return delegate.fakeOuterStringSerialize(body); } @@ -108,7 +128,11 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return delegate.testBodyWithFileSchema(body); } @@ -120,7 +144,15 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return delegate.testBodyWithQueryParams(query, body); } @@ -132,7 +164,11 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return delegate.testClientModel(body); } @@ -158,7 +194,63 @@ public ResponseEntity testClientModel(@ApiParam(value = "client model" , * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return delegate.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -178,7 +270,39 @@ public ResponseEntity testEndpointParameters(@ApiParam(value = "None", req * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -195,7 +319,31 @@ public ResponseEntity testEnumParameters(@ApiParam(value = "Header paramet * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -206,7 +354,11 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return delegate.testInlineAdditionalProperties(param); } @@ -218,7 +370,15 @@ public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "re * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return delegate.testJsonFormData(param, param2); } @@ -234,7 +394,27 @@ public ResponseEntity testJsonFormData(@ApiParam(value = "field1", require * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -247,7 +427,19 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return delegate.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index e7b7252ae2e5..51d647e3e610 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -35,6 +35,7 @@ public interface FakeClassnameTestApi { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -42,6 +43,10 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 5e208f64c750..ffd138d85e3c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -39,7 +39,11 @@ public FakeClassnameTestApiController(@org.springframework.beans.factory.annotat * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return delegate.testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java index 113bdfda347b..5709d5a997dc 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -37,14 +37,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -62,13 +68,23 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -86,14 +102,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -112,14 +134,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -137,15 +165,22 @@ public interface PetApi { @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -164,16 +199,24 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -191,13 +234,26 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -215,6 +271,7 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -222,6 +279,18 @@ public interface PetApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java index 04c2d70b8754..9a7881a1d56f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -40,7 +40,11 @@ public PetApiController(@org.springframework.beans.factory.annotation.Autowired( * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return delegate.addPet(body); } @@ -53,7 +57,15 @@ public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to b * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + public ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return delegate.deletePet(petId, apiKey); } @@ -66,7 +78,11 @@ public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requi * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable) { return delegate.findPetsByStatus(status, pageable); } @@ -80,7 +96,11 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable) { return delegate.findPetsByTags(tags, pageable); } @@ -94,7 +114,11 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + public ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return delegate.getPetById(petId); } @@ -108,7 +132,11 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",re * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return delegate.updatePet(body); } @@ -121,7 +149,19 @@ public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs t * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return delegate.updatePetWithForm(petId, name, status); } @@ -134,7 +174,19 @@ public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return delegate.uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java index a93d2a2b20da..bc43347c9308 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -34,13 +34,19 @@ public interface StoreApi { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); + ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +); /** @@ -55,6 +61,7 @@ public interface StoreApi { @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -76,15 +83,22 @@ public interface StoreApi { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); + ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +); /** @@ -97,13 +111,19 @@ public interface StoreApi { @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index e52670dc35de..19236d0e2a7c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -41,7 +41,11 @@ public StoreApiController(@org.springframework.beans.factory.annotation.Autowire * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + public ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return delegate.deleteOrder(orderId); } @@ -66,7 +70,11 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + public ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return delegate.getOrderById(orderId); } @@ -78,7 +86,11 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return delegate.placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java index a4e3155f63b7..b734f786f6ed 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -33,12 +33,17 @@ public interface UserApi { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -50,12 +55,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -67,12 +77,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -86,13 +101,19 @@ public interface UserApi { @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -106,15 +127,22 @@ public interface UserApi { @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -128,14 +156,24 @@ public interface UserApi { @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -146,6 +184,7 @@ public interface UserApi { @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -166,12 +205,22 @@ public interface UserApi { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java index d2f4ce3ee208..e02da9575370 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -40,7 +40,11 @@ public UserApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return delegate.createUser(body); } @@ -51,7 +55,11 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object" , * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return delegate.createUsersWithArrayInput(body); } @@ -62,7 +70,11 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return delegate.createUsersWithListInput(body); } @@ -75,7 +87,11 @@ public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + public ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return delegate.deleteUser(username); } @@ -88,7 +104,11 @@ public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + public ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return delegate.getUserByName(username); } @@ -101,7 +121,15 @@ public ResponseEntity getUserByName(@ApiParam(value = "The name that needs * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return delegate.loginUser(username, password); } @@ -125,7 +153,15 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return delegate.updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 147d849cc922..dc996c378c27 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index ce9bcaa68676..b48cb85f2156 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 737ad7c564e0..4f5d053e2af5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 77bfe745257a..404b35bad5ab 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -81,7 +80,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -109,7 +108,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -138,7 +137,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -166,7 +165,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -194,7 +193,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -252,7 +251,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a8cf838ca3d3..b63e9ce7f45a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 33e651eac438..aa8f5ed039bc 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 161b9ab6b6c5..cf90194d2263 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Animal.java index 9ee335089250..0cc366311a6b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Animal.java @@ -18,7 +18,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -42,7 +41,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -63,7 +62,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index cf01705a29f4..72b54be5467a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -19,7 +19,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -43,7 +42,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index d93dbea2ce9c..4210f652c989 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -19,7 +19,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -43,7 +42,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java index c38412c8bd8e..902c8614e445 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java @@ -19,7 +19,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -51,7 +50,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -79,7 +78,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -108,7 +107,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java index 2518307f8ea8..6dcfeebd038b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -16,7 +16,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -46,7 +45,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -66,7 +65,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -86,7 +85,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -106,7 +105,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -126,7 +125,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -146,7 +145,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java index 6f18222633a5..63918269d52d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java @@ -18,7 +18,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -33,7 +32,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java index c2d836507b58..85d3a0019ee6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java @@ -16,7 +16,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -31,7 +30,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java index 2c8bf7c0a319..0f758dc8db20 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java @@ -16,7 +16,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -34,7 +33,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -54,7 +53,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java index 4d88c1e45a8e..a1bd84395145 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -31,7 +31,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java index 917f4bc7bf35..8b86abab45a8 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java @@ -16,7 +16,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -31,7 +30,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java index 704c61072736..296bb61c157f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java @@ -18,7 +18,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -33,7 +32,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java index fa8d5ee70fd0..a4fbf81944b1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java @@ -16,7 +16,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -31,7 +30,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java index b0d6cf4a164b..428b7b2c854d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -19,7 +19,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -108,7 +107,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +135,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java index d1569ee7cc88..c2798f8e2526 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -18,7 +18,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -189,7 +188,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -209,7 +208,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -230,7 +229,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +249,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +269,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 81e4947052c3..2b416cc9334a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -18,7 +18,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -37,7 +36,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -66,7 +65,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java index fd984d48eaf4..23a4266902a7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -21,7 +21,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -79,7 +78,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +100,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +120,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -143,7 +142,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -167,7 +166,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +188,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +208,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -229,7 +228,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -250,7 +249,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -271,7 +270,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -293,7 +292,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -314,7 +313,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +334,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -356,7 +355,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index b13079273ed7..450a2b0181a6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -16,7 +16,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -34,7 +33,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -54,7 +53,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java index a30642ec1306..e94ee2b728a6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java @@ -20,7 +20,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -91,7 +90,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -120,7 +119,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -148,7 +147,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -176,7 +175,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index ad2c7a9c08fd..9ab8252d07c7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -22,7 +22,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -45,7 +44,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -66,7 +65,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -95,7 +94,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java index 8e51dc7b0bf5..01ef71ba2502 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -34,7 +34,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -54,7 +54,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 956f91cbb977..bc236b4da51c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -16,7 +16,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -37,7 +36,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -57,7 +56,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -77,7 +76,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java index f71f60f59709..2cdd99e8d772 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -31,7 +31,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java index 8336bed2c940..af27cd1af3d1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java @@ -40,7 +40,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -61,7 +61,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -81,7 +81,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -101,7 +101,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java index dd16633227ae..862d411fe058 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -17,7 +17,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -32,7 +31,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java index c864f06e391a..16975d75f3c1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java @@ -18,7 +18,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -86,7 +85,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -106,7 +105,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -126,7 +125,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -146,7 +145,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -167,7 +166,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +186,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java index 93aec9d2daa0..208120848954 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -17,7 +17,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -38,7 +37,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -59,7 +58,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -79,7 +78,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java index 85f81063494f..40407b09ad84 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java @@ -21,7 +21,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -90,7 +89,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -110,7 +109,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -131,7 +130,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -157,7 +156,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -186,7 +185,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -207,7 +206,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index d60fdad1bf7b..423a679b1dde 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -16,7 +16,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -34,7 +33,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -54,7 +53,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java index 460c28d4b255..fcf2fdf59ff5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -16,7 +16,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -31,7 +30,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java index 6fe98fc604cd..8829ce49833b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java @@ -16,7 +16,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -34,7 +33,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -54,7 +53,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index 482eb19494a1..3e7b78bacff8 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -19,7 +19,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -47,7 +46,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -68,7 +67,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -90,7 +89,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -111,7 +110,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -137,7 +136,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 04f71a018150..3257f982965a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -19,7 +19,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -50,7 +49,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -71,7 +70,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +92,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -114,7 +113,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -135,7 +134,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -161,7 +160,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java index c44a870bc050..43cff9853463 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java @@ -16,7 +16,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -52,7 +51,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -72,7 +71,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -92,7 +91,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -112,7 +111,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -132,7 +131,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -152,7 +151,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -172,7 +171,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -192,7 +191,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java index 8c3f59ee846b..e789f1ef52e2 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -19,7 +19,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -127,7 +126,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -147,7 +146,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -168,7 +167,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +187,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +215,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -236,7 +235,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -256,7 +255,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -277,7 +276,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +296,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +324,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -353,7 +352,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -373,7 +372,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -393,7 +392,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -414,7 +413,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +433,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +461,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -490,7 +489,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -510,7 +509,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -530,7 +529,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -551,7 +550,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +570,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +598,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -627,7 +626,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -647,7 +646,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +666,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -688,7 +687,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +707,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +735,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -764,7 +763,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java index 4241c5e0d559..69b1e7b57036 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -36,6 +36,7 @@ default AnotherFakeApiDelegate getDelegate() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -43,7 +44,11 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index aff56540029e..ddb3bbf8a7d0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -45,13 +45,18 @@ default FakeApiDelegate getDelegate() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return getDelegate().createXmlItem(xmlItem); } @@ -66,13 +71,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -87,13 +97,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -108,13 +123,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -129,13 +149,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return getDelegate().fakeOuterStringSerialize(body); } @@ -150,13 +175,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return getDelegate().testBodyWithFileSchema(body); } @@ -171,13 +201,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -192,6 +231,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -199,7 +239,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClientModel(body); } @@ -231,14 +275,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -261,14 +363,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -288,12 +424,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -307,13 +468,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return getDelegate().testInlineAdditionalProperties(param); } @@ -328,13 +494,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -353,12 +528,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -378,6 +574,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -385,7 +582,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index c0bbd76fb7d9..f924491dc105 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -39,6 +39,7 @@ default FakeClassnameTestApiDelegate getDelegate() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -46,7 +47,11 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java index 6f466b8bff68..a2c6eff3c28c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java @@ -41,14 +41,20 @@ default PetApiDelegate getDelegate() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().addPet(body); } @@ -68,13 +74,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return getDelegate().deletePet(petId, apiKey); } @@ -94,14 +110,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { return getDelegate().findPetsByStatus(status, pageable); } @@ -122,14 +144,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { return getDelegate().findPetsByTags(tags, pageable); } @@ -149,15 +177,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { return getDelegate().getPetById(petId); } @@ -178,16 +213,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return getDelegate().updatePet(body); } @@ -207,13 +250,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -233,6 +289,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -240,7 +297,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java index c7b41c2c7491..5eba2ee2aad5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java @@ -38,13 +38,19 @@ default StoreApiDelegate getDelegate() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return getDelegate().deleteOrder(orderId); } @@ -61,6 +67,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -84,15 +91,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { return getDelegate().getOrderById(orderId); } @@ -107,14 +121,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java index 2c50012b880b..9b91f2707756 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java @@ -37,12 +37,17 @@ default UserApiDelegate getDelegate() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().createUser(body); } @@ -56,12 +61,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithArrayInput(body); } @@ -75,12 +85,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return getDelegate().createUsersWithListInput(body); } @@ -96,13 +111,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return getDelegate().deleteUser(username); } @@ -118,15 +139,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { return getDelegate().getUserByName(username); } @@ -142,14 +170,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return getDelegate().loginUser(username, password); } @@ -162,6 +200,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -184,13 +223,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Animal.java index 3fd8af44b1d3..b3aaa09c9fa0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -43,7 +42,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -64,7 +63,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java index 16cd1e6e7e5d..c7dcedc99ca7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java @@ -22,7 +22,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -91,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -111,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -132,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -158,7 +157,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -187,7 +186,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -208,7 +207,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 2f55eacc9eae..a9e0d198b1d1 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -32,6 +32,7 @@ public interface AnotherFakeApi { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -39,6 +40,10 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 2e0af3fc11b8..cad46630a33e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -41,7 +41,11 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index b8029605729f..a837895554f3 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -41,13 +41,18 @@ public interface FakeApi { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +); /** @@ -60,13 +65,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +); /** @@ -79,13 +89,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +); /** @@ -98,13 +113,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +); /** @@ -117,13 +137,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +); /** @@ -136,13 +161,18 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +); /** @@ -155,13 +185,22 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +); /** @@ -174,6 +213,7 @@ public interface FakeApi { @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -181,7 +221,11 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); /** @@ -211,14 +255,72 @@ public interface FakeApi { @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -239,14 +341,48 @@ public interface FakeApi { @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -264,12 +400,37 @@ public interface FakeApi { @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +); /** @@ -281,13 +442,18 @@ public interface FakeApi { @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +); /** @@ -300,13 +466,22 @@ public interface FakeApi { @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -323,12 +498,33 @@ public interface FakeApi { @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +); /** @@ -346,6 +542,7 @@ public interface FakeApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -353,6 +550,18 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 371d378c18f4..68623a815e1a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -50,7 +50,11 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,7 +67,11 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -76,7 +84,11 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -96,7 +108,11 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -109,7 +125,11 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -122,7 +142,11 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -135,7 +159,15 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -148,7 +180,11 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -182,7 +218,63 @@ public ResponseEntity testClientModel(@ApiParam(value = "client model" , * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -203,7 +295,39 @@ public ResponseEntity testEndpointParameters(@ApiParam(value = "None", req * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -221,7 +345,31 @@ public ResponseEntity testEnumParameters(@ApiParam(value = "Header paramet * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -233,7 +381,11 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -246,7 +398,15 @@ public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "re * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -263,7 +423,27 @@ public ResponseEntity testJsonFormData(@ApiParam(value = "field1", require * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -277,7 +457,19 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index e7b7252ae2e5..51d647e3e610 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -35,6 +35,7 @@ public interface FakeClassnameTestApi { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -42,6 +43,10 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); + ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index bf34d83297ee..6e326ba96237 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -41,7 +41,11 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + public ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java index 113bdfda347b..5709d5a997dc 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -37,14 +37,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -62,13 +68,23 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); + ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +); /** @@ -86,14 +102,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -112,14 +134,20 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -137,15 +165,22 @@ public interface PetApi { @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); + ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +); /** @@ -164,16 +199,24 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +); /** @@ -191,13 +234,26 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -215,6 +271,7 @@ public interface PetApi { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -222,6 +279,18 @@ public interface PetApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java index 764063efcaeb..e3c3878ecbad 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -42,7 +42,11 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,7 +60,15 @@ public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to b * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + public ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -70,7 +82,11 @@ public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requi * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -97,7 +113,11 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -124,7 +144,11 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + public ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -151,7 +175,11 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",re * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -165,7 +193,19 @@ public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs t * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +219,19 @@ public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java index a93d2a2b20da..bc43347c9308 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -34,13 +34,19 @@ public interface StoreApi { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); + ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +); /** @@ -55,6 +61,7 @@ public interface StoreApi { @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -76,15 +83,22 @@ public interface StoreApi { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); + ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +); /** @@ -97,13 +111,19 @@ public interface StoreApi { @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index 4f0f16bb9b71..833ece720826 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -43,7 +43,11 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + public ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -70,7 +74,11 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + public ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -95,7 +103,11 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java index a4e3155f63b7..b734f786f6ed 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -33,12 +33,17 @@ public interface UserApi { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +); /** @@ -50,12 +55,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -67,12 +77,17 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +); /** @@ -86,13 +101,19 @@ public interface UserApi { @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); + ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +); /** @@ -106,15 +127,22 @@ public interface UserApi { @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); + ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +); /** @@ -128,14 +156,24 @@ public interface UserApi { @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +); /** @@ -146,6 +184,7 @@ public interface UserApi { @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -166,12 +205,22 @@ public interface UserApi { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); + ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java index 94ea640fd226..5a85b48d7d4c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -42,7 +42,11 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -54,7 +58,11 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object" , * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,7 +74,11 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -80,7 +92,11 @@ public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + public ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,7 +110,11 @@ public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + public ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -120,7 +140,15 @@ public ResponseEntity getUserByName(@ApiParam(value = "The name that needs * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,7 +174,15 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + public ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 147d849cc922..dc996c378c27 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index ce9bcaa68676..b48cb85f2156 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 737ad7c564e0..4f5d053e2af5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 77bfe745257a..404b35bad5ab 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -81,7 +80,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -109,7 +108,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -138,7 +137,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -166,7 +165,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -194,7 +193,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -252,7 +251,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a8cf838ca3d3..b63e9ce7f45a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 33e651eac438..aa8f5ed039bc 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 161b9ab6b6c5..cf90194d2263 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -18,7 +18,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -33,7 +32,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Animal.java index 9ee335089250..0cc366311a6b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Animal.java @@ -18,7 +18,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -42,7 +41,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -63,7 +62,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index cf01705a29f4..72b54be5467a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -19,7 +19,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -43,7 +42,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index d93dbea2ce9c..4210f652c989 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -19,7 +19,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -43,7 +42,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java index c38412c8bd8e..902c8614e445 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java @@ -19,7 +19,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -51,7 +50,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -79,7 +78,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -108,7 +107,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java index 2518307f8ea8..6dcfeebd038b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -16,7 +16,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -46,7 +45,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -66,7 +65,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -86,7 +85,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -106,7 +105,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -126,7 +125,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -146,7 +145,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java index 6f18222633a5..63918269d52d 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java @@ -18,7 +18,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -33,7 +32,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java index c2d836507b58..85d3a0019ee6 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java @@ -16,7 +16,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -31,7 +30,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java index 2c8bf7c0a319..0f758dc8db20 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java @@ -16,7 +16,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -34,7 +33,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -54,7 +53,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java index 4d88c1e45a8e..a1bd84395145 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -31,7 +31,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java index 917f4bc7bf35..8b86abab45a8 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java @@ -16,7 +16,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -31,7 +30,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java index 704c61072736..296bb61c157f 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java @@ -18,7 +18,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -33,7 +32,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java index fa8d5ee70fd0..a4fbf81944b1 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java @@ -16,7 +16,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -31,7 +30,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java index b0d6cf4a164b..428b7b2c854d 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -19,7 +19,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -108,7 +107,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +135,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java index d1569ee7cc88..c2798f8e2526 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -18,7 +18,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -189,7 +188,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -209,7 +208,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -230,7 +229,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +249,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +269,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 81e4947052c3..2b416cc9334a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -18,7 +18,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -37,7 +36,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -66,7 +65,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java index fd984d48eaf4..23a4266902a7 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -21,7 +21,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -79,7 +78,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +100,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +120,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -143,7 +142,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -167,7 +166,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +188,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +208,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -229,7 +228,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -250,7 +249,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -271,7 +270,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -293,7 +292,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -314,7 +313,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +334,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -356,7 +355,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index b13079273ed7..450a2b0181a6 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -16,7 +16,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -34,7 +33,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -54,7 +53,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java index a30642ec1306..e94ee2b728a6 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java @@ -20,7 +20,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -91,7 +90,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -120,7 +119,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -148,7 +147,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -176,7 +175,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index ad2c7a9c08fd..9ab8252d07c7 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -22,7 +22,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -45,7 +44,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -66,7 +65,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -95,7 +94,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java index 8e51dc7b0bf5..01ef71ba2502 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -34,7 +34,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -54,7 +54,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 956f91cbb977..bc236b4da51c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -16,7 +16,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -37,7 +36,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -57,7 +56,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -77,7 +76,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java index f71f60f59709..2cdd99e8d772 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -31,7 +31,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java index 8336bed2c940..af27cd1af3d1 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java @@ -40,7 +40,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -61,7 +61,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -81,7 +81,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -101,7 +101,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java index dd16633227ae..862d411fe058 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -17,7 +17,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -32,7 +31,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java index c864f06e391a..16975d75f3c1 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java @@ -18,7 +18,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -86,7 +85,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -106,7 +105,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -126,7 +125,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -146,7 +145,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -167,7 +166,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +186,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java index 93aec9d2daa0..208120848954 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -17,7 +17,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -38,7 +37,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -59,7 +58,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -79,7 +78,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java index 85f81063494f..40407b09ad84 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java @@ -21,7 +21,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -90,7 +89,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -110,7 +109,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -131,7 +130,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -157,7 +156,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -186,7 +185,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -207,7 +206,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index d60fdad1bf7b..423a679b1dde 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -16,7 +16,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -34,7 +33,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -54,7 +53,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java index 460c28d4b255..fcf2fdf59ff5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -16,7 +16,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -31,7 +30,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java index 6fe98fc604cd..8829ce49833b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java @@ -16,7 +16,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -34,7 +33,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -54,7 +53,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index 482eb19494a1..3e7b78bacff8 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -19,7 +19,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -47,7 +46,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -68,7 +67,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -90,7 +89,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -111,7 +110,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -137,7 +136,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 04f71a018150..3257f982965a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -19,7 +19,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -50,7 +49,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -71,7 +70,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +92,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -114,7 +113,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -135,7 +134,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -161,7 +160,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java index c44a870bc050..43cff9853463 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java @@ -16,7 +16,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -52,7 +51,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -72,7 +71,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -92,7 +91,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -112,7 +111,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -132,7 +131,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -152,7 +151,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -172,7 +171,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -192,7 +191,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java index 8c3f59ee846b..e789f1ef52e2 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -19,7 +19,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -127,7 +126,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -147,7 +146,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -168,7 +167,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +187,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +215,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -236,7 +235,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -256,7 +255,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -277,7 +276,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +296,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +324,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -353,7 +352,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -373,7 +372,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -393,7 +392,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -414,7 +413,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +433,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +461,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -490,7 +489,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -510,7 +509,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -530,7 +529,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -551,7 +550,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +570,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +598,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -627,7 +626,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -647,7 +646,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +666,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -688,7 +687,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +707,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +735,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -764,7 +763,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0f4d829ecff8..d0fa15f2e80e 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -47,7 +48,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index b83c2c79446f..e9ba2a82df45 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -49,13 +49,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,13 +76,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,13 +103,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -124,13 +139,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,13 +166,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -168,13 +193,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -190,13 +220,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,6 +251,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -219,7 +259,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -261,14 +305,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -292,14 +394,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,12 +456,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -340,13 +501,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,13 +528,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -388,12 +563,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -414,6 +610,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -421,7 +618,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f607759a0cfb..03dc0acc7e8c 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -50,7 +51,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index db1ee6874e5d..8a73c19222c9 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -45,14 +45,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -73,13 +79,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -100,14 +116,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -143,14 +165,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + + + +, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -185,15 +213,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -229,16 +264,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,13 +302,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -286,6 +342,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -293,7 +350,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 00e980b67ee0..6af9606eb3aa 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -42,13 +42,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +72,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -90,15 +97,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -128,14 +142,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 6d5c1ef5f048..10d6b1fb0840 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -41,12 +41,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,12 +66,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,12 +91,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,13 +118,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,15 +147,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,14 +193,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -186,6 +224,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -209,13 +248,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Animal.java index 3fd8af44b1d3..b3aaa09c9fa0 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -43,7 +42,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -64,7 +63,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java index 16cd1e6e7e5d..c7dcedc99ca7 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -22,7 +22,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -91,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -111,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -132,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -158,7 +157,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -187,7 +186,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -208,7 +207,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0f4d829ecff8..d0fa15f2e80e 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -47,7 +48,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index 7fe2abb8de9b..9ff3ac10d56c 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -49,13 +49,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,13 +76,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,13 +103,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -124,13 +139,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,13 +166,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -168,13 +193,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -190,13 +220,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,6 +251,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -219,7 +259,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -261,14 +305,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -292,14 +394,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) Optional> enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) Optional enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") Optional enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) Optional> enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) Optional enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") Optional enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,12 +456,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Optional booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Optional booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -340,13 +501,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,13 +528,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -388,12 +563,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -414,6 +610,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -421,7 +618,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f607759a0cfb..03dc0acc7e8c 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -50,7 +51,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java index d62e32119505..ceb9172c27eb 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java @@ -46,14 +46,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +80,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) Optional apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) Optional apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,14 +117,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -144,14 +166,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +214,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -230,16 +265,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -260,13 +303,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,6 +343,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -294,7 +351,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java index 00e980b67ee0..6af9606eb3aa 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java @@ -42,13 +42,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +72,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -90,15 +97,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -128,14 +142,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java index 6d5c1ef5f048..10d6b1fb0840 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java @@ -41,12 +41,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,12 +66,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,12 +91,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,13 +118,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,15 +147,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,14 +193,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -186,6 +224,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -209,13 +248,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Animal.java index 8dd1dd124d3a..f2c82f3e6a0e 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java index db1677b34480..0c3fd2d0c222 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java index 7c043481d96e..2f39d2a48f37 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java index 16bbedb032d9..20bd76aecaa9 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java index 8ab376c41b87..76444071cff3 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java @@ -44,6 +44,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -51,7 +52,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index dc098a87beba..60dca8d13cae 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -53,13 +53,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -76,13 +81,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -99,13 +109,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -131,13 +146,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -154,13 +174,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -177,13 +202,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,13 +230,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -223,6 +262,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -230,7 +270,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -273,14 +317,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -305,14 +407,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -334,12 +470,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -355,13 +516,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -378,13 +544,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -405,12 +580,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -432,6 +628,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -439,7 +636,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java index 205d6c506fdd..8bc7d8865f35 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java @@ -47,6 +47,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -54,7 +55,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java index 20117e4cff13..bff64cea743e 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java @@ -50,14 +50,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,13 +85,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -107,14 +123,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,14 +173,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -194,15 +222,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -239,16 +274,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -270,13 +313,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -298,6 +354,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -305,7 +362,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java index 0328dabbf4c1..3cc22dfc250f 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java @@ -46,13 +46,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,6 +77,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -96,15 +103,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -135,14 +149,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java index fceb57fc0e3b..bd65b8fb493b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java @@ -45,12 +45,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,12 +71,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -87,12 +97,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,13 +125,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -134,15 +155,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -174,14 +202,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -196,6 +234,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -220,13 +259,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java index e19aafb4b6f0..45d9d1f034d8 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java index bab70d6539dd..2f1e22d68c72 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java index f088dc1f6adf..3ff00ee3b3f6 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java index 6b79e19fbc18..0d61e39fa607 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java index a176ac3f50ae..14dd8db3c342 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java index 46ee53d5bcc8..9c84789317ac 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java index de150fabe5c0..6ca3bf34bcd0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Animal.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Animal.java index 98125b3c83e5..7fb91d78afe9 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Animal.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfArrayOfNumberOnly.java index 71743b98a4ef..426067b88a5a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java index 51bf32b5b320..f328c5e2428b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java index 01afb5d6fd92..5dedef8f4cc4 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java index b55f0c1be2b0..f5ad6d997d8c 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java index b9d7411737c7..85737e2cc9b4 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java index 29444d11c52e..1fa3ac5a2633 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java index 18b9df70726f..5e94f1b1a64f 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java index 88c368b0bea8..a33fdfcda719 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java index bc5ba7b28f27..3d8c2fbf35aa 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java index cef8cd8b90a0..0e32d5a18084 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java index 743f9a838072..8dea86420bb2 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java index be1625594a99..029709749905 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java index ad4cc04148a1..97f94b6a42ee 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java index 55e641c7422d..3f2f2a67cf30 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java index 2141898ecd7a..298dc30c3567 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java index c6b979305ef7..0050982609ce 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java index 942b3189cff8..54ca4ece7a10 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java index 9163ea6466ff..b7b482d52879 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java index 92bfd4bdd693..936be9da62c3 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java index e7b0d08f974b..1a743f9cf9e6 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java index d6ee65d5da49..721b20efec44 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java index 642b94ca5c7e..14d6a102d65b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java index beccd82a057a..fb014d2ffeb0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java index 09c2ff8ded9c..86f152bdf84b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java index 9df7a1337ef2..50883657b0a1 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java index cd41c7586ef7..78631b8af085 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java index ea6b3a994ec8..a8caa9c61def 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java index f35d71e1100d..bfb4f2615922 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java index f5407f1df7a6..558e77d567ae 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java index 2361bbb9c59b..7fd78bb94782 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java index a05bf60cf76f..4044f158800d 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java index fd73c094f937..2c1ada2a85a1 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java index 0bbe1ea863a2..85d83cde2869 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java index 88f955c70c87..b5862ca99588 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java index afa5d13aecee..b1a5c1876a6b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0f4d829ecff8..d0fa15f2e80e 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,6 +40,7 @@ default Optional getRequest() { @ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -47,7 +48,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index ae0b62e430ee..5bcb0139ae49 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -49,13 +49,18 @@ default Optional getRequest() { @ApiOperation(value = "creates an XmlItem", nickname = "createXmlItem", notes = "this route creates an XmlItem", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + + +@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,13 +76,18 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,req @ApiOperation(value = "", nickname = "fakeOuterBooleanSerialize", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,13 +103,18 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp @ApiOperation(value = "", nickname = "fakeOuterCompositeSerialize", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -124,13 +139,18 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -146,13 +166,18 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I @ApiOperation(value = "", nickname = "fakeOuterStringSerialize", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Output string", response = String.class) }) @RequestMapping( method = RequestMethod.POST, value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -168,13 +193,18 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input @ApiOperation(value = "", nickname = "testBodyWithFileSchema", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -190,13 +220,22 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,requir @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + + + +, + + +@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,6 +251,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -219,7 +259,11 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -261,14 +305,72 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model" @Authorization(value = "http_basic_test") }, tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.POST, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + + + +@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + + + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -292,14 +394,48 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re @ApiOperation(value = "To test enum parameters", nickname = "testEnumParameters", notes = "To test enum parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid request"), + @ApiResponse(code = 404, message = "Not found") }) @RequestMapping( method = RequestMethod.GET, value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( + +@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray + +, + +@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString + +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + + + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + + + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + + + +, + + + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + + + +@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,12 +456,37 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame @ApiOperation(value = "Fake endpoint to test group parameters (optional)", nickname = "testGroupParameters", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Someting wrong") }) @RequestMapping( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + + + +, + +@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + + + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + + + +, + +@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -340,13 +501,18 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req @ApiOperation(value = "test inline additionalProperties", nickname = "testInlineAdditionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + + +@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,13 +528,22 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + + + +@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, + + + +@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -388,12 +563,33 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir @ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + + + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -414,6 +610,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -421,7 +618,19 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f607759a0cfb..03dc0acc7e8c 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,6 +43,7 @@ default Optional getRequest() { @Authorization(value = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @RequestMapping( method = RequestMethod.PATCH, @@ -50,7 +51,11 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + + +@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java index aeb9ffa11ef4..a119c7ac632b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java @@ -46,14 +46,20 @@ default Optional getRequest() { @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,13 +80,23 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid pet value") }) @RequestMapping( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { + default ResponseEntity deletePet( +@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId + + +, + +@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,14 +117,20 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",requ @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), + @ApiResponse(code = 400, message = "Invalid status value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -144,14 +166,20 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), + @ApiResponse(code = 400, message = "Invalid tag value") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -186,15 +214,22 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags @Authorization(value = "api_key") }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Pet.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found") }) @RequestMapping( method = RequestMethod.GET, value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById( +@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -230,16 +265,24 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",r @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation"), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Pet not found"), + @ApiResponse(code = 405, message = "Validation exception") }) @RequestMapping( method = RequestMethod.PUT, value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + + +@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -260,13 +303,26 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm( +@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + + + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -287,6 +343,7 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @RequestMapping( method = RequestMethod.POST, @@ -294,7 +351,19 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile( +@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId + + +, + + + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + + + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java index 00e980b67ee0..6af9606eb3aa 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java @@ -42,13 +42,19 @@ default Optional getRequest() { @ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder( +@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -66,6 +72,7 @@ default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that @Authorization(value = "api_key") }, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) @RequestMapping( method = RequestMethod.GET, @@ -90,15 +97,22 @@ default ResponseEntity> getInventory() { @ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid ID supplied"), + @ApiResponse(code = 404, message = "Order not found") }) @RequestMapping( method = RequestMethod.GET, value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById( +@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -128,14 +142,20 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " @ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = Order.class), + @ApiResponse(code = 400, message = "Invalid Order") }) @RequestMapping( method = RequestMethod.POST, value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + + +@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java index 6d5c1ef5f048..10d6b1fb0840 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java @@ -41,12 +41,17 @@ default Optional getRequest() { @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + + +@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,12 +66,17 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object" @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,12 +91,17 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + + +@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,13 +118,19 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { + default ResponseEntity deleteUser( +@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,15 +147,22 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t @ApiOperation(value = "Get user by user name", nickname = "getUserByName", notes = "", response = User.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = User.class), + @ApiResponse(code = 400, message = "Invalid username supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.GET, value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { + default ResponseEntity getUserByName( +@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username + + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,14 +193,24 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need @ApiOperation(value = "Logs user into the system", nickname = "loginUser", notes = "", response = String.class, tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation", response = String.class), + @ApiResponse(code = 400, message = "Invalid username/password supplied") }) @RequestMapping( method = RequestMethod.GET, value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + + + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + + + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -186,6 +224,7 @@ default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user na @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping( method = RequestMethod.GET, @@ -209,13 +248,23 @@ default ResponseEntity logoutUser() { @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { + @ApiResponse(code = 400, message = "Invalid user supplied"), + @ApiResponse(code = 404, message = "User not found") }) @RequestMapping( method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser( +@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username + + +, + + +@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index feeaf30cce6b..cba77034fe13 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesAnyType extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 129b3f4ad511..cc664246091d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesArray extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index bd8bb2d4145d..697e93406f93 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesBoolean extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index b8fa14346387..04361a4f07cd 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesClass { @JsonProperty("map_string") @@ -82,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapString() { @@ -110,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -139,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapInteger() { @@ -167,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapBoolean() { @@ -195,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -253,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesInteger name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index a0301ffb7203..0d78678061c5 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesNumber extends HashMap { @JsonProperty("name") @@ -35,7 +34,7 @@ public AdditionalPropertiesNumber name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 00defcb52ce1..62f7d980ae15 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesObject */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesObject extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesObject name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index f06b1071c5d6..efe7d6fdb035 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class AdditionalPropertiesString extends HashMap { @JsonProperty("name") @@ -34,7 +33,7 @@ public AdditionalPropertiesString name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Animal.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Animal.java index 8dd1dd124d3a..f2c82f3e6a0e 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Animal.java @@ -19,7 +19,6 @@ /** * Animal */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true) @JsonSubTypes({ @@ -44,7 +43,7 @@ public Animal className(String className) { * Get className * @return className */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -65,7 +64,7 @@ public Animal color(String color) { * Get color * @return color */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getColor() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 82b6ecec0a78..3fd69952a77d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfArrayOfNumberOnly { @JsonProperty("ArrayArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 5549a3c0e5f9..a6c485f09f46 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayOfNumberOnly { @JsonProperty("ArrayNumber") @@ -44,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java index 1d0e7bb632b3..2a2f8eb05dff 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java @@ -20,7 +20,6 @@ /** * ArrayTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ArrayTest { @JsonProperty("array_of_string") @@ -52,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayOfString() { @@ -80,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -109,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java index db1677b34480..0c3fd2d0c222 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java @@ -20,7 +20,6 @@ /** * BigCat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCat extends Cat { /** @@ -74,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java index 7c043481d96e..2f39d2a48f37 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -18,7 +18,6 @@ /** * BigCatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class BigCatAllOf { /** @@ -72,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java index d4d8acae8d6d..4f3a1535ce78 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java @@ -17,7 +17,6 @@ /** * Capitalization */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Capitalization { @JsonProperty("smallCamel") @@ -47,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallCamel() { @@ -67,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalCamel() { @@ -87,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getSmallSnake() { @@ -107,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getCapitalSnake() { @@ -127,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getScAETHFlowPoints() { @@ -147,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty(value = "Name of the pet ") + @ApiModelProperty((value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java index afaf05c10972..3fc8b825b907 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Cat extends Animal { @JsonProperty("declawed") @@ -34,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java index 9368be5acd78..bcb0daae003a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java @@ -17,7 +17,6 @@ /** * CatAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class CatAllOf { @JsonProperty("declawed") @@ -32,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java index af160206b7a4..19d21cb73fc0 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * Category */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Category { @JsonProperty("id") @@ -35,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java index af4c74423128..2dabeae8d266 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java index 58b5dae512dd..f1aa7264affa 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java @@ -17,7 +17,6 @@ /** * Client */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Client { @JsonProperty("client") @@ -32,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getClient() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java index 8243f48344a1..e5aab5cd6dd5 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java @@ -19,7 +19,6 @@ /** * Dog */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Dog extends Animal { @JsonProperty("breed") @@ -34,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java index 93e06194f769..a391bcbc0e08 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java @@ -17,7 +17,6 @@ /** * DogAllOf */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class DogAllOf { @JsonProperty("breed") @@ -32,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java index 8fb776ce6b5f..57f2b4362528 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java @@ -20,7 +20,6 @@ /** * EnumArrays */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumArrays { /** @@ -109,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public JustSymbolEnum getJustSymbol() { @@ -137,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java index ff3d1c068826..0ee0e4b4d108 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java @@ -19,7 +19,6 @@ /** * EnumTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class EnumTest { /** @@ -190,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumStringEnum getEnumString() { @@ -210,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -231,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumIntegerEnum getEnumInteger() { @@ -251,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public EnumNumberEnum getEnumNumber() { @@ -271,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d9313145b13d..431400ad6c65 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FileSchemaTestClass { @JsonProperty("file") @@ -38,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java index 74779c15374d..a8b027c02231 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class FormatTest { @JsonProperty("integer") @@ -80,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -102,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -122,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getInt64() { @@ -144,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -168,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -190,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -210,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Pattern(regexp="/[a-z]/i") public String getString() { @@ -230,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -251,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -272,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -294,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -315,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -336,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Size(min=10,max=64) @@ -357,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index d1336dc7fdd8..3b7b93611699 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -17,7 +17,6 @@ /** * HasOnlyReadOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class HasOnlyReadOnly { @JsonProperty("bar") @@ -35,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java index f762b570fb86..9fca01e248e1 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java @@ -21,7 +21,6 @@ /** * MapTest */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MapTest { @JsonProperty("map_map_of_string") @@ -92,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -121,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getMapOfEnumString() { @@ -149,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getDirectMap() { @@ -177,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86180bbdddb3..b7bd7497c03b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -23,7 +23,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class MixedPropertiesAndAdditionalPropertiesClass { @JsonProperty("uuid") @@ -46,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -67,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -96,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java index 3f8bdc54450d..1e02396fb664 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java index 1d50893eba4c..52aebf107b1f 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -17,7 +17,6 @@ /** * ModelApiResponse */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ModelApiResponse { @JsonProperty("code") @@ -38,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getCode() { @@ -58,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getType() { @@ -78,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java index d9cc6193aee6..a0baaf9b8737 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java index 880351d2843a..d0ad3edf20a5 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java index 093396c47263..1cc0e9381b79 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java @@ -18,7 +18,6 @@ /** * NumberOnly */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class NumberOnly { @JsonProperty("JustNumber") @@ -33,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java index 954c8453e20e..0adc72236f00 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java @@ -19,7 +19,6 @@ /** * Order */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Order { @JsonProperty("id") @@ -87,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -107,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getPetId() { @@ -127,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Integer getQuantity() { @@ -147,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -168,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty(value = "Order Status") + @ApiModelProperty((value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java index 9c3d1bb51b2b..733d25bfe5ba 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java @@ -18,7 +18,6 @@ /** * OuterComposite */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class OuterComposite { @JsonProperty("my_number") @@ -39,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -60,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getMyString() { @@ -80,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java index 16bbedb032d9..20bd76aecaa9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Pet { @JsonProperty("id") @@ -93,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -113,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -134,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty(example = "doggie", required = true, value = "") + @ApiModelProperty((example = "doggie", required = true, value = "") @NotNull @@ -160,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -189,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") @Valid @@ -210,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty((value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 33ca87c658f0..e751c28d1dcc 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -17,7 +17,6 @@ /** * ReadOnlyFirst */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class ReadOnlyFirst { @JsonProperty("bar") @@ -35,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty(readOnly = true, value = "") + @ApiModelProperty((readOnly = true, value = "") public String getBar() { @@ -55,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java index 3e539023d45a..2046723eb2c9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java @@ -17,7 +17,6 @@ /** * SpecialModelName */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class SpecialModelName { @JsonProperty("$special[property.name]") @@ -32,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java index 58640d58e0d5..38b12aab2f81 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * Tag */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class Tag { @JsonProperty("id") @@ -35,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -55,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4bf371c03785..fd913360a8e2 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -20,7 +20,6 @@ /** * TypeHolderDefault */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderDefault { @JsonProperty("string_item") @@ -48,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -69,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @Valid @@ -91,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -112,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull @@ -138,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty((required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java index bf74d4a98b25..736180c3126f 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -20,7 +20,6 @@ /** * TypeHolderExample */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class TypeHolderExample { @JsonProperty("string_item") @@ -51,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty(example = "what", required = true, value = "") + @ApiModelProperty((example = "what", required = true, value = "") @NotNull @@ -72,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @Valid @@ -94,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty(example = "1.234", required = true, value = "") + @ApiModelProperty((example = "1.234", required = true, value = "") @NotNull @@ -115,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty((example = "-2", required = true, value = "") @NotNull @@ -136,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty((example = "true", required = true, value = "") @NotNull @@ -162,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java index 4b4879bce320..ed30cddf3ceb 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * User */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class User { @JsonProperty("id") @@ -53,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public Long getId() { @@ -73,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getUsername() { @@ -93,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getFirstName() { @@ -113,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getLastName() { @@ -133,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getEmail() { @@ -153,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPassword() { @@ -173,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public String getPhone() { @@ -193,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty(value = "User Status") + @ApiModelProperty((value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java index 2861e970cba5..8c06ae383471 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java @@ -20,7 +20,6 @@ /** * XmlItem */ - @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public class XmlItem { @JsonProperty("attribute_string") @@ -128,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getAttributeString() { @@ -148,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -169,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getAttributeInteger() { @@ -189,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getAttributeBoolean() { @@ -217,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getWrappedArray() { @@ -237,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNameString() { @@ -257,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -278,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNameInteger() { @@ -298,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNameBoolean() { @@ -326,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameArray() { @@ -354,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNameWrappedArray() { @@ -374,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixString() { @@ -394,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -415,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixInteger() { @@ -435,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixBoolean() { @@ -463,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixArray() { @@ -491,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixWrappedArray() { @@ -511,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getNamespaceString() { @@ -531,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -552,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getNamespaceInteger() { @@ -572,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -600,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceArray() { @@ -628,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getNamespaceWrappedArray() { @@ -648,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty(example = "string", value = "") + @ApiModelProperty((example = "string", value = "") public String getPrefixNsString() { @@ -668,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty(example = "1.234", value = "") + @ApiModelProperty((example = "1.234", value = "") @Valid @@ -689,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty((example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -709,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty(example = "true", value = "") + @ApiModelProperty((example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -737,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsArray() { @@ -765,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty(value = "") + @ApiModelProperty((value = "") public List getPrefixNsWrappedArray() { From c4d9aaa73f881d94259b1a181ef090d1ee61f661 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Mon, 23 Aug 2021 10:49:23 -0400 Subject: [PATCH 07/21] Remove #vendorParams from API --- .../src/main/resources/JavaSpring/api.mustache | 3 --- .../src/main/resources/JavaSpring/bodyParams.mustache | 2 +- .../src/main/resources/JavaSpring/headerParams.mustache | 2 +- .../src/main/resources/JavaSpring/pathParams.mustache | 2 +- .../src/main/resources/JavaSpring/queryParams.mustache | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache index ef8ad88e3539..449ef83ad258 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache @@ -35,9 +35,6 @@ import org.springframework.validation.annotation.Validated; {{#useSpringController}} import org.springframework.stereotype.Controller; {{/useSpringController}} -{{#vendorExtensions.x-spring-paginated}} -import org.springframework.data.domain.Pageable; -{{/vendorExtensions.x-spring-paginated}} import org.springframework.web.bind.annotation.*; {{#jdk8-no-delegate}} {{^reactive}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache index 10256d93849b..cffced9787f5 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache @@ -1 +1 @@ -{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues="{{{.}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} +{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues="{{{.}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache index 7f57f61a75f8..b2802dae810b 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache @@ -1 +1 @@ -{{#isHeaderParam}}{{#oas3}}@Parameter(description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues="{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value="{{baseName}}", required={{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} +{{#isHeaderParam}}{{#oas3}}@Parameter(description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues="{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value="{{baseName}}", required={{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache index b5e116837c39..534ca64d2b6a 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache @@ -1 +1 @@ -{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{baseName}}", description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaEscapeDoubleQuote}}{{{value}}}{{/lambdaEscapeDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} +{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{baseName}}", description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaEscapeDoubleQuote}}{{{value}}}{{/lambdaEscapeDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache index dfb8b7153237..df938d5b5c24 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache @@ -1 +1 @@ -{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} +{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} \ No newline at end of file From 2e55e9717df748d979200c8764ba47917113aad5 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Mon, 23 Aug 2021 10:53:47 -0400 Subject: [PATCH 08/21] Update generated and tests --- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/TestHeadersApi.java | 26 +- .../openapitools/api/TestQueryParamsApi.java | 26 +- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../openapitools/api/FakeApiController.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../openapitools/api/PetApiController.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../openapitools/api/UserApiController.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 206 ++-------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 64 +---- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../openapitools/api/FakeApiController.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../openapitools/api/PetApiController.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../openapitools/api/UserApiController.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../api/AnotherFakeApiController.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../openapitools/api/FakeApiController.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../api/FakeClassnameTestApiController.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../openapitools/api/PetApiController.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../openapitools/api/StoreApiController.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../openapitools/api/UserApiController.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- .../virtualan/api/AnotherFakeApi.java | 6 +- .../openapitools/virtualan/api/FakeApi.java | 222 ++---------------- .../virtualan/api/FakeClassnameTestApi.java | 6 +- .../openapitools/virtualan/api/PetApi.java | 68 +----- .../openapitools/virtualan/api/StoreApi.java | 18 +- .../openapitools/virtualan/api/UserApi.java | 50 +--- .../org/openapitools/api/AnotherFakeApi.java | 6 +- .../java/org/openapitools/api/FakeApi.java | 222 ++---------------- .../api/FakeClassnameTestApi.java | 6 +- .../java/org/openapitools/api/PetApi.java | 68 +----- .../java/org/openapitools/api/StoreApi.java | 18 +- .../java/org/openapitools/api/UserApi.java | 50 +--- 143 files changed, 827 insertions(+), 7655 deletions(-) diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java index b76698f483bd..1c5dfb948b66 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java @@ -48,11 +48,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - CompletableFuture> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -75,15 +71,7 @@ CompletableFuture> addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - CompletableFuture> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -110,11 +98,7 @@ CompletableFuture> deletePet( value = "/pet/findByStatus", produces = "application/json" ) - CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -); + CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); /** @@ -142,11 +126,7 @@ CompletableFuture>> findPetsByStatus(@NotNull @ApiParam value = "/pet/findByTags", produces = "application/json" ) - CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -); + CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); /** @@ -175,11 +155,7 @@ CompletableFuture>> findPetsByTags(@NotNull @ApiParam(v value = "/pet/{petId}", produces = "application/json" ) - CompletableFuture> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -208,11 +184,7 @@ CompletableFuture> getPetById( value = "/pet", consumes = "application/json" ) - CompletableFuture> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -237,19 +209,7 @@ CompletableFuture> updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - CompletableFuture> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, - - - -@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -275,18 +235,6 @@ CompletableFuture> updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - CompletableFuture> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java index ad895139dae2..b207ab653ff0 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java @@ -47,11 +47,7 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - CompletableFuture> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -); + CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); /** @@ -99,11 +95,7 @@ CompletableFuture> deleteOrder( value = "/store/order/{orderId}", produces = "application/json" ) - CompletableFuture> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -); + CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); /** @@ -125,10 +117,6 @@ CompletableFuture> getOrderById( value = "/store/order", produces = "application/json" ) - CompletableFuture> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java index 3b7aab2c39d1..027388dffdb9 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java @@ -44,11 +44,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - CompletableFuture> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -66,11 +62,7 @@ CompletableFuture> createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - CompletableFuture> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -88,11 +80,7 @@ CompletableFuture> createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - CompletableFuture> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -114,11 +102,7 @@ CompletableFuture> createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - CompletableFuture> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -143,11 +127,7 @@ CompletableFuture> deleteUser( value = "/user/{username}", produces = "application/json" ) - CompletableFuture> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -170,15 +150,7 @@ CompletableFuture> getUserByName( value = "/user/login", produces = "application/json" ) - CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -218,14 +190,6 @@ CompletableFuture> loginUser(@NotNull @ApiParam(value = " method = RequestMethod.PUT, value = "/user/{username}" ) - CompletableFuture> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 1af66c82e801..278760fa4619 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -47,11 +47,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -74,15 +70,7 @@ com.netflix.hystrix.HystrixCommand> addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - com.netflix.hystrix.HystrixCommand> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + com.netflix.hystrix.HystrixCommand> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -109,11 +97,7 @@ com.netflix.hystrix.HystrixCommand> deletePet( value = "/pet/findByStatus", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -); + com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); /** @@ -141,11 +125,7 @@ com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@ value = "/pet/findByTags", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -); + com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); /** @@ -174,11 +154,7 @@ com.netflix.hystrix.HystrixCommand>> findPetsByTags(@No value = "/pet/{petId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + com.netflix.hystrix.HystrixCommand> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -207,11 +183,7 @@ com.netflix.hystrix.HystrixCommand> getPetById( value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -236,19 +208,7 @@ com.netflix.hystrix.HystrixCommand> updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - com.netflix.hystrix.HystrixCommand> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, - - - -@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + com.netflix.hystrix.HystrixCommand> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -274,18 +234,6 @@ com.netflix.hystrix.HystrixCommand> updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - com.netflix.hystrix.HystrixCommand> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + com.netflix.hystrix.HystrixCommand> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 5a5b824ada4b..4577e802bd39 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -46,11 +46,7 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - com.netflix.hystrix.HystrixCommand> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -); + com.netflix.hystrix.HystrixCommand> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); /** @@ -98,11 +94,7 @@ com.netflix.hystrix.HystrixCommand> deleteOrder( value = "/store/order/{orderId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -); + com.netflix.hystrix.HystrixCommand> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); /** @@ -124,10 +116,6 @@ com.netflix.hystrix.HystrixCommand> getOrderById( value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java index d51e165cfcc1..4bdf137680e8 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -43,11 +43,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -65,11 +61,7 @@ com.netflix.hystrix.HystrixCommand> createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -87,11 +79,7 @@ com.netflix.hystrix.HystrixCommand> createUsersWithArrayInp method = RequestMethod.POST, value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -113,11 +101,7 @@ com.netflix.hystrix.HystrixCommand> createUsersWithListInpu method = RequestMethod.DELETE, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + com.netflix.hystrix.HystrixCommand> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -142,11 +126,7 @@ com.netflix.hystrix.HystrixCommand> deleteUser( value = "/user/{username}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + com.netflix.hystrix.HystrixCommand> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -169,15 +149,7 @@ com.netflix.hystrix.HystrixCommand> getUserByName( value = "/user/login", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -217,14 +189,6 @@ com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @A method = RequestMethod.PUT, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index ed6abf922471..7da5d3310a8c 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -47,11 +47,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -74,15 +70,7 @@ ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -109,11 +97,7 @@ ResponseEntity deletePet( value = "/pet/findByStatus", produces = "application/json" ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -141,11 +125,7 @@ ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status va value = "/pet/findByTags", produces = "application/json" ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -174,11 +154,7 @@ ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to fil value = "/pet/{petId}", produces = "application/json" ) - ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -207,11 +183,7 @@ ResponseEntity getPetById( value = "/pet", consumes = "application/json" ) - ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -236,19 +208,7 @@ ResponseEntity updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, - - - -@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -274,18 +234,6 @@ ResponseEntity updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 2b0433e33f90..d4cc12860ebf 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -46,11 +46,7 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); /** @@ -98,11 +94,7 @@ ResponseEntity deleteOrder( value = "/store/order/{orderId}", produces = "application/json" ) - ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); /** @@ -124,10 +116,6 @@ ResponseEntity getOrderById( value = "/store/order", produces = "application/json" ) - ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index f3a51ae0eb25..6a93e3bb638d 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -43,11 +43,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -65,11 +61,7 @@ ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -87,11 +79,7 @@ ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -113,11 +101,7 @@ ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -142,11 +126,7 @@ ResponseEntity deleteUser( value = "/user/{username}", produces = "application/json" ) - ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -169,15 +149,7 @@ ResponseEntity getUserByName( value = "/user/login", produces = "application/json" ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -234,14 +206,6 @@ ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for l method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index 1af66c82e801..278760fa4619 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -47,11 +47,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -74,15 +70,7 @@ com.netflix.hystrix.HystrixCommand> addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - com.netflix.hystrix.HystrixCommand> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + com.netflix.hystrix.HystrixCommand> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -109,11 +97,7 @@ com.netflix.hystrix.HystrixCommand> deletePet( value = "/pet/findByStatus", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -); + com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); /** @@ -141,11 +125,7 @@ com.netflix.hystrix.HystrixCommand>> findPetsByStatus(@ value = "/pet/findByTags", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -); + com.netflix.hystrix.HystrixCommand>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); /** @@ -174,11 +154,7 @@ com.netflix.hystrix.HystrixCommand>> findPetsByTags(@No value = "/pet/{petId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + com.netflix.hystrix.HystrixCommand> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -207,11 +183,7 @@ com.netflix.hystrix.HystrixCommand> getPetById( value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -236,19 +208,7 @@ com.netflix.hystrix.HystrixCommand> updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - com.netflix.hystrix.HystrixCommand> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, - - - -@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + com.netflix.hystrix.HystrixCommand> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -274,18 +234,6 @@ com.netflix.hystrix.HystrixCommand> updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - com.netflix.hystrix.HystrixCommand> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + com.netflix.hystrix.HystrixCommand> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 5a5b824ada4b..4577e802bd39 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -46,11 +46,7 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - com.netflix.hystrix.HystrixCommand> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -); + com.netflix.hystrix.HystrixCommand> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId); /** @@ -98,11 +94,7 @@ com.netflix.hystrix.HystrixCommand> deleteOrder( value = "/store/order/{orderId}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -); + com.netflix.hystrix.HystrixCommand> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId); /** @@ -124,10 +116,6 @@ com.netflix.hystrix.HystrixCommand> getOrderById( value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index d51e165cfcc1..4bdf137680e8 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -43,11 +43,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -65,11 +61,7 @@ com.netflix.hystrix.HystrixCommand> createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -87,11 +79,7 @@ com.netflix.hystrix.HystrixCommand> createUsersWithArrayInp method = RequestMethod.POST, value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -113,11 +101,7 @@ com.netflix.hystrix.HystrixCommand> createUsersWithListInpu method = RequestMethod.DELETE, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + com.netflix.hystrix.HystrixCommand> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -142,11 +126,7 @@ com.netflix.hystrix.HystrixCommand> deleteUser( value = "/user/{username}", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + com.netflix.hystrix.HystrixCommand> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -169,15 +149,7 @@ com.netflix.hystrix.HystrixCommand> getUserByName( value = "/user/login", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -217,14 +189,6 @@ com.netflix.hystrix.HystrixCommand> loginUser(@NotNull @A method = RequestMethod.PUT, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java index 8e29471cc021..81d3e53ac802 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { value = "/pet", consumes = "application/json" ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -81,15 +77,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -119,11 +107,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = "application/json" ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -168,11 +152,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = "application/json" ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -218,11 +198,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = "application/json" ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -268,11 +244,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = "application/json" ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -300,19 +272,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -341,19 +301,7 @@ default ResponseEntity updatePetWithForm( produces = "application/json", consumes = "multipart/form-data" ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java index 529891d25848..87c8941fc36a 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("orderId") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,11 +104,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{orderId}", produces = "application/json" ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,11 +143,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = "application/json" ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java index 32567388c5f7..47bda9e3a22a 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -158,11 +142,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = "application/json" ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -202,15 +182,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = "application/json" ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -256,15 +228,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java index ffad3244e9cb..e437693a072f 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java @@ -53,31 +53,7 @@ default Optional getRequest() { value = "/test-headers", produces = { "application/json" } ) - default ResponseEntity headersTest( - -@ApiParam(value = "" , defaultValue="11.2") @RequestHeader(value="headerNumber", required=false) BigDecimal headerNumber - -, - -@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerString", required=false) String headerString - -, - -@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerStringWrapped", required=false) String headerStringWrapped - -, - -@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotes", required=false) String headerStringQuotes - -, - -@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotesWrapped", required=false) String headerStringQuotesWrapped - -, - -@ApiParam(value = "" , defaultValue="true") @RequestHeader(value="headerBoolean", required=false) Boolean headerBoolean - -) { + default ResponseEntity headersTest(@ApiParam(value = "" , defaultValue="11.2") @RequestHeader(value="headerNumber", required=false) BigDecimal headerNumber,@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerString", required=false) String headerString,@ApiParam(value = "" , defaultValue="qwerty") @RequestHeader(value="headerStringWrapped", required=false) String headerStringWrapped,@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotes", required=false) String headerStringQuotes,@ApiParam(value = "" , defaultValue="qwerty\"with quotes\" test") @RequestHeader(value="headerStringQuotesWrapped", required=false) String headerStringQuotesWrapped,@ApiParam(value = "" , defaultValue="true") @RequestHeader(value="headerBoolean", required=false) Boolean headerBoolean) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java index 4ac326397dc8..f9e3af3ddaff 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java @@ -53,31 +53,7 @@ default Optional getRequest() { value = "/test-query-params", produces = { "application/json" } ) - default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue="11.2") BigDecimal queryNumber - - - -,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue="qwerty") String queryString - - - -,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue="qwerty") String queryStringWrapped - - - -,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotes - - - -,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotesWrapped - - - -,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue="true") Boolean queryBoolean - - - -) { + default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue="11.2") BigDecimal queryNumber,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue="qwerty") String queryString,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue="qwerty") String queryStringWrapped,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotes,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue="qwerty\"with quotes\" test") String queryStringQuotesWrapped,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue="true") Boolean queryBoolean) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java index 91302ed353b5..fae7d6e4138c 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default CompletableFuture> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java index 829e201bbf23..3e75aaad3de5 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java @@ -57,11 +57,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default CompletableFuture> createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default CompletableFuture> createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -84,11 +80,7 @@ default CompletableFuture> createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default CompletableFuture> fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default CompletableFuture> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -111,11 +103,7 @@ default CompletableFuture> fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default CompletableFuture> fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default CompletableFuture> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -149,11 +137,7 @@ default CompletableFuture> fakeOuterCompositeSeri value = "/fake/outer/number", produces = { "*/*" } ) - default CompletableFuture> fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default CompletableFuture> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -176,11 +160,7 @@ default CompletableFuture> fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default CompletableFuture> fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default CompletableFuture> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -203,11 +183,7 @@ default CompletableFuture> fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default CompletableFuture> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -230,15 +206,7 @@ default CompletableFuture> testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -262,11 +230,7 @@ default CompletableFuture> testBodyWithQueryParams(@NotNull produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default CompletableFuture> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -319,63 +283,7 @@ default CompletableFuture> testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default CompletableFuture> testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -408,39 +316,7 @@ default CompletableFuture> testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default CompletableFuture> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -467,31 +343,7 @@ default CompletableFuture> testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -513,11 +365,7 @@ default CompletableFuture> testGroupParameters(@NotNull @Ap value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default CompletableFuture> testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default CompletableFuture> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -540,15 +388,7 @@ default CompletableFuture> testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default CompletableFuture> testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -574,27 +414,7 @@ default CompletableFuture> testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -623,19 +443,7 @@ default CompletableFuture> testQueryParameterCollectionForm produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default CompletableFuture> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 13f9f9bb2fb6..747ef9aaf825 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -52,11 +52,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default CompletableFuture> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java index 9d8d9988d894..4af9fa1fd7b6 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -89,15 +85,7 @@ default CompletableFuture> addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default CompletableFuture> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -127,11 +115,7 @@ default CompletableFuture> deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -178,11 +162,7 @@ default CompletableFuture>> findPetsByStatus(@NotNull @ value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -230,11 +210,7 @@ default CompletableFuture>> findPetsByTags(@NotNull @Api value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -285,11 +261,7 @@ default CompletableFuture> getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -317,19 +289,7 @@ default CompletableFuture> updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -358,19 +318,7 @@ default CompletableFuture> updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java index 25c64ceecbe2..3593c7b9f942 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default CompletableFuture> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -109,11 +105,7 @@ default CompletableFuture>> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -154,11 +146,7 @@ default CompletableFuture> getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default CompletableFuture> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java index 224268ac4510..f0aa62ee6244 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default CompletableFuture> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -73,11 +69,7 @@ default CompletableFuture> createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default CompletableFuture> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -98,11 +90,7 @@ default CompletableFuture> createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default CompletableFuture> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -127,11 +115,7 @@ default CompletableFuture> createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default CompletableFuture> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -159,11 +143,7 @@ default CompletableFuture> deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -205,15 +185,7 @@ default CompletableFuture> getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -259,15 +231,7 @@ default CompletableFuture> logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default CompletableFuture> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java index d0fa15f2e80e..a283b451095d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java index 784edffd8ca4..a7d7c7fbf2f0 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +79,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -146,11 +134,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -173,11 +157,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,11 +180,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,15 +203,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,11 +227,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -314,63 +278,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -403,39 +311,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -462,31 +338,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -508,11 +360,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -535,15 +383,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -569,27 +409,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -618,19 +438,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 03dc0acc7e8c..341343e64c63 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java index a119c7ac632b..def4cafca5cb 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java @@ -55,11 +55,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,15 +84,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -175,11 +159,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -225,11 +205,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -278,11 +254,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,19 +282,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -351,19 +311,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java index 6af9606eb3aa..1e8a431e74ee 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,11 +104,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,11 +143,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java index 10d6b1fb0840..446dd7d43602 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -158,11 +142,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -202,15 +182,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -256,15 +228,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index d0fa15f2e80e..a283b451095d 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 5bcb0139ae49..535d828df8aa 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +79,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -146,11 +134,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -173,11 +157,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,11 +180,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,15 +203,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,11 +227,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -314,63 +278,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -403,39 +311,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -462,31 +338,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -508,11 +360,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -535,15 +383,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -569,27 +409,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -618,19 +438,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 03dc0acc7e8c..341343e64c63 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java index a119c7ac632b..def4cafca5cb 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -55,11 +55,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,15 +84,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -175,11 +159,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -225,11 +205,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -278,11 +254,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,19 +282,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -351,19 +311,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 6af9606eb3aa..1e8a431e74ee 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,11 +104,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,11 +143,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 10d6b1fb0840..446dd7d43602 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -158,11 +142,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -202,15 +182,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -256,15 +228,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index d0fa15f2e80e..a283b451095d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index e9ba2a82df45..dc8538ad405b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +79,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -146,11 +134,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -173,11 +157,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,11 +180,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,15 +203,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,11 +227,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -314,63 +278,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -403,39 +311,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -462,31 +338,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -508,11 +360,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -535,15 +383,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -569,27 +409,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -618,19 +438,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 03dc0acc7e8c..341343e64c63 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 8a73c19222c9..699d99070a0e 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -87,15 +83,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -125,11 +113,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -174,11 +158,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -224,11 +204,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,11 +253,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -309,19 +281,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -350,19 +310,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 6af9606eb3aa..1e8a431e74ee 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,11 +104,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,11 +143,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 10d6b1fb0840..446dd7d43602 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -158,11 +142,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -202,15 +182,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -256,15 +228,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java index d0fa15f2e80e..a283b451095d 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java index 5bcb0139ae49..535d828df8aa 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +79,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -146,11 +134,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -173,11 +157,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,11 +180,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,15 +203,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,11 +227,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -314,63 +278,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -403,39 +311,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -462,31 +338,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -508,11 +360,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -535,15 +383,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -569,27 +409,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -618,19 +438,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 03dc0acc7e8c..341343e64c63 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java index a119c7ac632b..def4cafca5cb 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java @@ -55,11 +55,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,15 +84,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -175,11 +159,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -225,11 +205,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -278,11 +254,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,19 +282,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -351,19 +311,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java index 6af9606eb3aa..1e8a431e74ee 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,11 +104,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,11 +143,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java index 10d6b1fb0840..446dd7d43602 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -158,11 +142,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -202,15 +182,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -256,15 +228,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index a9e0d198b1d1..41242f791e94 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,10 +40,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java index cad46630a33e..2e0af3fc11b8 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -41,11 +41,7 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 8ce69eb444c5..9ba0b3f8e46b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -48,11 +48,7 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -); + ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -72,11 +68,7 @@ ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -); + ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -96,11 +88,7 @@ ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -120,11 +108,7 @@ ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -); + ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -144,11 +128,7 @@ ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -); + ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -168,11 +148,7 @@ ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -192,15 +168,7 @@ ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); /** @@ -221,11 +189,7 @@ ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", requ produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); /** @@ -264,63 +228,7 @@ ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -350,39 +258,7 @@ ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -406,31 +282,7 @@ ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); /** @@ -449,11 +301,7 @@ ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required St value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); /** @@ -473,15 +321,7 @@ ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -504,27 +344,7 @@ ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); /** @@ -550,18 +370,6 @@ ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java index 56685918f5d7..c05e348d413f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java @@ -50,11 +50,7 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,11 +63,7 @@ public ResponseEntity createXmlItem( * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -84,11 +76,7 @@ public ResponseEntity fakeOuterBooleanSerialize( * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -108,11 +96,7 @@ public ResponseEntity fakeOuterCompositeSerialize( * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -125,11 +109,7 @@ public ResponseEntity fakeOuterNumberSerialize( * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -142,11 +122,7 @@ public ResponseEntity fakeOuterStringSerialize( * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -159,15 +135,7 @@ public ResponseEntity testBodyWithFileSchema( * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -180,11 +148,7 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -218,63 +182,7 @@ public ResponseEntity testClientModel( * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -295,39 +203,7 @@ public ResponseEntity testEndpointParameters( * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -345,31 +221,7 @@ public ResponseEntity testEnumParameters( * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,11 +233,7 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -398,15 +246,7 @@ public ResponseEntity testInlineAdditionalProperties( * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -423,27 +263,7 @@ public ResponseEntity testJsonFormData( * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -457,19 +277,7 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 51d647e3e610..9171aaf6480e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,10 +43,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 6e326ba96237..bf34d83297ee 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -41,11 +41,7 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 91dd5c9e4ff3..7614ad987dbc 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -47,11 +47,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -77,15 +73,7 @@ ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -112,11 +100,7 @@ ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); /** @@ -144,11 +128,7 @@ ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status va value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags); /** @@ -177,11 +157,7 @@ ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filt value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -213,11 +189,7 @@ ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -242,19 +214,7 @@ ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -280,18 +240,6 @@ ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java index b7336c5f7219..cd559c767d71 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java @@ -43,11 +43,7 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -61,15 +57,7 @@ public ResponseEntity addPet( * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +71,7 @@ public ResponseEntity deletePet( * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -114,11 +98,7 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -145,11 +125,7 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -176,11 +152,7 @@ public ResponseEntity getPetById( * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -194,19 +166,7 @@ public ResponseEntity updatePet( * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -220,19 +180,7 @@ public ResponseEntity updatePetWithForm( * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index bc43347c9308..51e9cb4a49e4 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -42,11 +42,7 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); /** @@ -94,11 +90,7 @@ ResponseEntity deleteOrder( value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); /** @@ -120,10 +112,6 @@ ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java index 833ece720826..4f0f16bb9b71 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java @@ -43,11 +43,7 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,11 +70,7 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -103,11 +95,7 @@ public ResponseEntity getOrderById( * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java index b734f786f6ed..ee4e69182606 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -39,11 +39,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -61,11 +57,7 @@ ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -83,11 +75,7 @@ ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -109,11 +97,7 @@ ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -138,11 +122,7 @@ ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -165,15 +145,7 @@ ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -213,14 +185,6 @@ ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for l method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java index 5a85b48d7d4c..94ea640fd226 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java @@ -42,11 +42,7 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,11 +54,7 @@ public ResponseEntity createUser( * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,11 +66,7 @@ public ResponseEntity createUsersWithArrayInput( * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -92,11 +80,7 @@ public ResponseEntity createUsersWithListInput( * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +94,7 @@ public ResponseEntity deleteUser( * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -140,15 +120,7 @@ public ResponseEntity getUserByName( * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -174,15 +146,7 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java index d0fa15f2e80e..a283b451095d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index 5bcb0139ae49..535d828df8aa 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +79,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -146,11 +134,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -173,11 +157,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,11 +180,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,15 +203,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,11 +227,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -314,63 +278,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -403,39 +311,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -462,31 +338,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -508,11 +360,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -535,15 +383,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -569,27 +409,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -618,19 +438,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 03dc0acc7e8c..341343e64c63 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java index a119c7ac632b..def4cafca5cb 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java @@ -55,11 +55,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,15 +84,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -175,11 +159,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -225,11 +205,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -278,11 +254,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,19 +282,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -351,19 +311,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java index 6af9606eb3aa..1e8a431e74ee 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,11 +104,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,11 +143,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java index 10d6b1fb0840..446dd7d43602 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -158,11 +142,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -202,15 +182,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -256,15 +228,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 69b1e7b57036..036f514d1c7b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -44,11 +44,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index d972875fcc08..f21356235d90 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -52,11 +52,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -78,11 +74,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -130,11 +118,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -156,11 +140,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -182,11 +162,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -208,15 +184,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -239,11 +207,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -284,63 +248,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -372,39 +280,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -430,31 +306,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -475,11 +327,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } @@ -501,15 +349,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -534,27 +374,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -582,19 +402,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f924491dc105..bb1e1e508561 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -47,11 +47,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java index 26a6d3af3446..1e0e71ceda04 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java @@ -51,11 +51,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -83,15 +79,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return getDelegate().deletePet(petId, apiKey); } @@ -120,11 +108,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { return getDelegate().findPetsByStatus(status); } @@ -154,11 +138,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { return getDelegate().findPetsByTags(tags); } @@ -189,11 +169,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return getDelegate().getPetById(petId); } @@ -227,11 +203,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } @@ -258,19 +230,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -298,19 +258,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java index 5eba2ee2aad5..949e6c195c3b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -46,11 +46,7 @@ default StoreApiDelegate getDelegate() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return getDelegate().deleteOrder(orderId); } @@ -102,11 +98,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return getDelegate().getOrderById(orderId); } @@ -130,11 +122,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java index 9b91f2707756..8503f16fedb8 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java @@ -43,11 +43,7 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -67,11 +63,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -119,11 +107,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return getDelegate().deleteUser(username); } @@ -150,11 +134,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return getDelegate().getUserByName(username); } @@ -179,15 +159,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return getDelegate().loginUser(username, password); } @@ -231,15 +203,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java index 69b1e7b57036..036f514d1c7b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -44,11 +44,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index d972875fcc08..f21356235d90 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -52,11 +52,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -78,11 +74,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -130,11 +118,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -156,11 +140,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -182,11 +162,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -208,15 +184,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -239,11 +207,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -284,63 +248,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -372,39 +280,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -430,31 +306,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -475,11 +327,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } @@ -501,15 +349,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -534,27 +374,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -582,19 +402,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f924491dc105..bb1e1e508561 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -47,11 +47,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java index 26a6d3af3446..1e0e71ceda04 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java @@ -51,11 +51,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -83,15 +79,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return getDelegate().deletePet(petId, apiKey); } @@ -120,11 +108,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { return getDelegate().findPetsByStatus(status); } @@ -154,11 +138,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { return getDelegate().findPetsByTags(tags); } @@ -189,11 +169,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return getDelegate().getPetById(petId); } @@ -227,11 +203,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } @@ -258,19 +230,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -298,19 +258,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java index 5eba2ee2aad5..949e6c195c3b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java @@ -46,11 +46,7 @@ default StoreApiDelegate getDelegate() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return getDelegate().deleteOrder(orderId); } @@ -102,11 +98,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return getDelegate().getOrderById(orderId); } @@ -130,11 +122,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java index 9b91f2707756..8503f16fedb8 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java @@ -43,11 +43,7 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -67,11 +63,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -119,11 +107,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return getDelegate().deleteUser(username); } @@ -150,11 +134,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return getDelegate().getUserByName(username); } @@ -179,15 +159,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return getDelegate().loginUser(username, password); } @@ -231,15 +203,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1b5d69c26c5c..55d11cd7cefb 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index bc242f45bf65..cc8274e79ad5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -58,11 +58,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -87,11 +83,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -116,11 +108,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -154,11 +142,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -183,11 +167,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,11 +192,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -241,15 +217,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -275,11 +243,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -332,63 +296,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -423,31 +331,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -476,23 +360,7 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Query paramet method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -516,11 +384,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -545,15 +409,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -581,27 +437,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -632,19 +468,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index bd3f7d95c8fb..9f93a78d27c8 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -53,11 +53,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java index 5198fde3fbee..5206b1d9bc93 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java @@ -57,11 +57,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -92,11 +88,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -128,11 +120,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -179,11 +167,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -231,11 +215,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -286,11 +266,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,19 +296,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -363,19 +327,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java index f8f8bf43a4b5..4fe476ed417f 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java @@ -52,11 +52,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -114,11 +110,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -159,11 +151,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java index 4b335657d1c9..edfd6dcdae9a 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java @@ -49,11 +49,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -76,11 +72,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,11 +95,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -134,11 +122,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -168,11 +152,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -214,15 +194,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -272,15 +244,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java index ff7ad9a77f14..6df108954d8c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,11 +47,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().call123testSpecialTags(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index 47261d272ab7..156259838642 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -55,11 +55,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default Mono> createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody Mono xmlItem -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody Mono xmlItem, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createXmlItem(xmlItem, exchange); } @@ -81,11 +77,7 @@ default Mono> createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default Mono> fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterBooleanSerialize(body, exchange); } @@ -107,11 +99,7 @@ default Mono> fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default Mono> fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterCompositeSerialize(body, exchange); } @@ -133,11 +121,7 @@ default Mono> fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default Mono> fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterNumberSerialize(body, exchange); } @@ -159,11 +143,7 @@ default Mono> fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default Mono> fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterStringSerialize(body, exchange); } @@ -185,11 +165,7 @@ default Mono> fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default Mono> testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithFileSchema(body, exchange); } @@ -211,15 +187,7 @@ default Mono> testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithQueryParams(query, body, exchange); } @@ -242,11 +210,7 @@ default Mono> testBodyWithQueryParams(@NotNull @ApiParam(va produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClientModel(body, exchange); } @@ -287,63 +251,7 @@ default Mono> testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, exchange); } @@ -375,39 +283,7 @@ default Mono> testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, exchange); } @@ -433,31 +309,7 @@ default Mono> testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, exchange); } @@ -478,11 +330,7 @@ default Mono> testGroupParameters(@NotNull @ApiParam(value value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default Mono> testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono> param -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono> param, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testInlineAdditionalProperties(param, exchange); } @@ -504,15 +352,7 @@ default Mono> testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testJsonFormData(param, param2, exchange); } @@ -537,27 +377,7 @@ default Mono> testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, exchange); } @@ -585,19 +405,7 @@ default Mono> testQueryParameterCollectionFormat(@NotNull @ produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b90b20bb2ce2..b9edc0c04394 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,11 +50,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClassname(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java index d963eeeb9ee6..cc38c34e9ca1 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java @@ -54,11 +54,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().addPet(body, exchange); } @@ -86,15 +82,7 @@ default Mono> addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default Mono> deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deletePet(petId, apiKey, exchange); } @@ -123,11 +111,7 @@ default Mono> deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByStatus(status, exchange); } @@ -157,11 +141,7 @@ default Mono>> findPetsByStatus(@NotNull @ApiParam(valu value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByTags(tags, exchange); } @@ -192,11 +172,7 @@ default Mono>> findPetsByTags(@NotNull @ApiParam(value value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default Mono> getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getPetById(petId, exchange); } @@ -230,11 +206,7 @@ default Mono> getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePet(body, exchange); } @@ -261,19 +233,7 @@ default Mono> updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePetWithForm(petId, name, status, exchange); } @@ -301,19 +261,7 @@ default Mono> updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFile(petId, additionalMetadata, file, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java index 08d93cc844bf..faae0bcea171 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java @@ -49,11 +49,7 @@ default StoreApiDelegate getDelegate() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default Mono> deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteOrder(orderId, exchange); } @@ -105,11 +101,7 @@ default Mono>> getInventory(@ApiIgnore final value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default Mono> getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getOrderById(orderId, exchange); } @@ -133,11 +125,7 @@ default Mono> getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default Mono> placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().placeOrder(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java index 186fef24a4e7..3ef465489d6e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java @@ -46,11 +46,7 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default Mono> createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUser(body, exchange); } @@ -70,11 +66,7 @@ default Mono> createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default Mono> createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithArrayInput(body, exchange); } @@ -94,11 +86,7 @@ default Mono> createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default Mono> createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithListInput(body, exchange); } @@ -122,11 +110,7 @@ default Mono> createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default Mono> deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteUser(username, exchange); } @@ -153,11 +137,7 @@ default Mono> deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default Mono> getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().getUserByName(username, exchange); } @@ -182,15 +162,7 @@ default Mono> getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().loginUser(username, password, exchange); } @@ -234,15 +206,7 @@ default Mono> logoutUser(@ApiIgnore final ServerWebExchange method = RequestMethod.PUT, value = "/user/{username}" ) - default Mono> updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono body -, @ApiIgnore final ServerWebExchange exchange) { + default Mono> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono body, @ApiIgnore final ServerWebExchange exchange) { return getDelegate().updateUser(username, body, exchange); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index a9e0d198b1d1..41242f791e94 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,10 +40,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index d2397089c859..82d2ed7cec00 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -39,11 +39,7 @@ public AnotherFakeApiController(@org.springframework.beans.factory.annotation.Au * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return delegate.call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index a837895554f3..7f31aa66ed91 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -48,11 +48,7 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -); + ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -72,11 +68,7 @@ ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -); + ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -96,11 +88,7 @@ ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -120,11 +108,7 @@ ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -); + ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -144,11 +128,7 @@ ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -); + ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -168,11 +148,7 @@ ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -192,15 +168,7 @@ ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); /** @@ -221,11 +189,7 @@ ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", requ produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); /** @@ -264,63 +228,7 @@ ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -350,39 +258,7 @@ ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -406,31 +282,7 @@ ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); /** @@ -449,11 +301,7 @@ ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required St value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); /** @@ -473,15 +321,7 @@ ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -504,27 +344,7 @@ ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); /** @@ -550,18 +370,6 @@ ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 5bf25bc8db21..6e088985cf24 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -48,11 +48,7 @@ public FakeApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return delegate.createXmlItem(xmlItem); } @@ -64,11 +60,7 @@ public ResponseEntity createXmlItem( * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return delegate.fakeOuterBooleanSerialize(body); } @@ -80,11 +72,7 @@ public ResponseEntity fakeOuterBooleanSerialize( * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return delegate.fakeOuterCompositeSerialize(body); } @@ -96,11 +84,7 @@ public ResponseEntity fakeOuterCompositeSerialize( * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return delegate.fakeOuterNumberSerialize(body); } @@ -112,11 +96,7 @@ public ResponseEntity fakeOuterNumberSerialize( * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return delegate.fakeOuterStringSerialize(body); } @@ -128,11 +108,7 @@ public ResponseEntity fakeOuterStringSerialize( * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return delegate.testBodyWithFileSchema(body); } @@ -144,15 +120,7 @@ public ResponseEntity testBodyWithFileSchema( * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return delegate.testBodyWithQueryParams(query, body); } @@ -164,11 +132,7 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return delegate.testClientModel(body); } @@ -194,63 +158,7 @@ public ResponseEntity testClientModel( * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return delegate.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -270,39 +178,7 @@ public ResponseEntity testEndpointParameters( * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -319,31 +195,7 @@ public ResponseEntity testEnumParameters( * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -354,11 +206,7 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return delegate.testInlineAdditionalProperties(param); } @@ -370,15 +218,7 @@ public ResponseEntity testInlineAdditionalProperties( * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return delegate.testJsonFormData(param, param2); } @@ -394,27 +234,7 @@ public ResponseEntity testJsonFormData( * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -427,19 +247,7 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return delegate.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 51d647e3e610..9171aaf6480e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,10 +43,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index ffd138d85e3c..5e208f64c750 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -39,11 +39,7 @@ public FakeClassnameTestApiController(@org.springframework.beans.factory.annotat * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return delegate.testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java index 5709d5a997dc..5b81ef0c0e4b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -46,11 +46,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -76,15 +72,7 @@ ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -111,11 +99,7 @@ ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -143,11 +127,7 @@ ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status va value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -176,11 +156,7 @@ ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to fil value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -212,11 +188,7 @@ ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -241,19 +213,7 @@ ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -279,18 +239,6 @@ ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java index 9a7881a1d56f..04c2d70b8754 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -40,11 +40,7 @@ public PetApiController(@org.springframework.beans.factory.annotation.Autowired( * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return delegate.addPet(body); } @@ -57,15 +53,7 @@ public ResponseEntity addPet( * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return delegate.deletePet(petId, apiKey); } @@ -78,11 +66,7 @@ public ResponseEntity deletePet( * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { return delegate.findPetsByStatus(status, pageable); } @@ -96,11 +80,7 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { return delegate.findPetsByTags(tags, pageable); } @@ -114,11 +94,7 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return delegate.getPetById(petId); } @@ -132,11 +108,7 @@ public ResponseEntity getPetById( * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return delegate.updatePet(body); } @@ -149,19 +121,7 @@ public ResponseEntity updatePet( * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return delegate.updatePetWithForm(petId, name, status); } @@ -174,19 +134,7 @@ public ResponseEntity updatePetWithForm( * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return delegate.uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java index bc43347c9308..51e9cb4a49e4 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -42,11 +42,7 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); /** @@ -94,11 +90,7 @@ ResponseEntity deleteOrder( value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); /** @@ -120,10 +112,6 @@ ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index 19236d0e2a7c..e52670dc35de 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -41,11 +41,7 @@ public StoreApiController(@org.springframework.beans.factory.annotation.Autowire * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return delegate.deleteOrder(orderId); } @@ -70,11 +66,7 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return delegate.getOrderById(orderId); } @@ -86,11 +78,7 @@ public ResponseEntity getOrderById( * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return delegate.placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java index b734f786f6ed..ee4e69182606 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -39,11 +39,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -61,11 +57,7 @@ ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -83,11 +75,7 @@ ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -109,11 +97,7 @@ ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -138,11 +122,7 @@ ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -165,15 +145,7 @@ ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -213,14 +185,6 @@ ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for l method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java index e02da9575370..d2f4ce3ee208 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -40,11 +40,7 @@ public UserApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return delegate.createUser(body); } @@ -55,11 +51,7 @@ public ResponseEntity createUser( * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return delegate.createUsersWithArrayInput(body); } @@ -70,11 +62,7 @@ public ResponseEntity createUsersWithArrayInput( * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return delegate.createUsersWithListInput(body); } @@ -87,11 +75,7 @@ public ResponseEntity createUsersWithListInput( * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return delegate.deleteUser(username); } @@ -104,11 +88,7 @@ public ResponseEntity deleteUser( * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return delegate.getUserByName(username); } @@ -121,15 +101,7 @@ public ResponseEntity getUserByName( * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return delegate.loginUser(username, password); } @@ -153,15 +125,7 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return delegate.updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java index 69b1e7b57036..036f514d1c7b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -44,11 +44,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index ddb3bbf8a7d0..d48d260c372d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -52,11 +52,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -78,11 +74,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -104,11 +96,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -130,11 +118,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -156,11 +140,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -182,11 +162,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -208,15 +184,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -239,11 +207,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -284,63 +248,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -372,39 +280,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -430,31 +306,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -475,11 +327,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } @@ -501,15 +349,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -534,27 +374,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -582,19 +402,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f924491dc105..bb1e1e508561 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -47,11 +47,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java index a2c6eff3c28c..d121b17411a7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java @@ -50,11 +50,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -82,15 +78,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return getDelegate().deletePet(petId, apiKey); } @@ -119,11 +107,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { return getDelegate().findPetsByStatus(status, pageable); } @@ -153,11 +137,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { return getDelegate().findPetsByTags(tags, pageable); } @@ -188,11 +168,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { return getDelegate().getPetById(petId); } @@ -226,11 +202,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } @@ -257,19 +229,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -297,19 +257,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java index 5eba2ee2aad5..949e6c195c3b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java @@ -46,11 +46,7 @@ default StoreApiDelegate getDelegate() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return getDelegate().deleteOrder(orderId); } @@ -102,11 +98,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { return getDelegate().getOrderById(orderId); } @@ -130,11 +122,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java index 9b91f2707756..8503f16fedb8 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java @@ -43,11 +43,7 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -67,11 +63,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -91,11 +83,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -119,11 +107,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return getDelegate().deleteUser(username); } @@ -150,11 +134,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { return getDelegate().getUserByName(username); } @@ -179,15 +159,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return getDelegate().loginUser(username, password); } @@ -231,15 +203,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index a9e0d198b1d1..41242f791e94 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -40,10 +40,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index cad46630a33e..2e0af3fc11b8 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -41,11 +41,7 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index a837895554f3..7f31aa66ed91 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -48,11 +48,7 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -); + ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -72,11 +68,7 @@ ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -); + ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -96,11 +88,7 @@ ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -120,11 +108,7 @@ ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -); + ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -144,11 +128,7 @@ ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -); + ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -168,11 +148,7 @@ ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -192,15 +168,7 @@ ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); /** @@ -221,11 +189,7 @@ ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", requ produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); /** @@ -264,63 +228,7 @@ ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -350,39 +258,7 @@ ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -406,31 +282,7 @@ ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); /** @@ -449,11 +301,7 @@ ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required St value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); /** @@ -473,15 +321,7 @@ ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -504,27 +344,7 @@ ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); /** @@ -550,18 +370,6 @@ ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 68623a815e1a..371d378c18f4 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -50,11 +50,7 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,11 +63,7 @@ public ResponseEntity createXmlItem( * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -84,11 +76,7 @@ public ResponseEntity fakeOuterBooleanSerialize( * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -108,11 +96,7 @@ public ResponseEntity fakeOuterCompositeSerialize( * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -125,11 +109,7 @@ public ResponseEntity fakeOuterNumberSerialize( * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -142,11 +122,7 @@ public ResponseEntity fakeOuterStringSerialize( * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -159,15 +135,7 @@ public ResponseEntity testBodyWithFileSchema( * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -180,11 +148,7 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -218,63 +182,7 @@ public ResponseEntity testClientModel( * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -295,39 +203,7 @@ public ResponseEntity testEndpointParameters( * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -345,31 +221,7 @@ public ResponseEntity testEnumParameters( * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -381,11 +233,7 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -398,15 +246,7 @@ public ResponseEntity testInlineAdditionalProperties( * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -423,27 +263,7 @@ public ResponseEntity testJsonFormData( * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -457,19 +277,7 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 51d647e3e610..9171aaf6480e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,10 +43,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -); + ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 6e326ba96237..bf34d83297ee 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -41,11 +41,7 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java index 5709d5a997dc..5b81ef0c0e4b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -46,11 +46,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -76,15 +72,7 @@ ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey); /** @@ -111,11 +99,7 @@ ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -143,11 +127,7 @@ ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status va value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -176,11 +156,7 @@ ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to fil value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId); /** @@ -212,11 +188,7 @@ ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); /** @@ -241,19 +213,7 @@ ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -279,18 +239,6 @@ ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java index e3c3878ecbad..764063efcaeb 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -42,11 +42,7 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -60,15 +56,7 @@ public ResponseEntity addPet( * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,11 +70,7 @@ public ResponseEntity deletePet( * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -113,11 +97,7 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -144,11 +124,7 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -175,11 +151,7 @@ public ResponseEntity getPetById( * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -193,19 +165,7 @@ public ResponseEntity updatePet( * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -219,19 +179,7 @@ public ResponseEntity updatePetWithForm( * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java index bc43347c9308..51e9cb4a49e4 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -42,11 +42,7 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId); /** @@ -94,11 +90,7 @@ ResponseEntity deleteOrder( value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId); /** @@ -120,10 +112,6 @@ ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index 833ece720826..4f0f16bb9b71 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -43,11 +43,7 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,11 +70,7 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -103,11 +95,7 @@ public ResponseEntity getOrderById( * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java index b734f786f6ed..ee4e69182606 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -39,11 +39,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); /** @@ -61,11 +57,7 @@ ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -83,11 +75,7 @@ ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); /** @@ -109,11 +97,7 @@ ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username); /** @@ -138,11 +122,7 @@ ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username); /** @@ -165,15 +145,7 @@ ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); /** @@ -213,14 +185,6 @@ ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for l method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java index 5a85b48d7d4c..94ea640fd226 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -42,11 +42,7 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -58,11 +54,7 @@ public ResponseEntity createUser( * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -74,11 +66,7 @@ public ResponseEntity createUsersWithArrayInput( * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -92,11 +80,7 @@ public ResponseEntity createUsersWithListInput( * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +94,7 @@ public ResponseEntity deleteUser( * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -140,15 +120,7 @@ public ResponseEntity getUserByName( * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -174,15 +146,7 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index d0fa15f2e80e..a283b451095d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index e9ba2a82df45..dc8538ad405b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +79,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -146,11 +134,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -173,11 +157,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,11 +180,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,15 +203,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,11 +227,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -314,63 +278,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -403,39 +311,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -462,31 +338,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -508,11 +360,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -535,15 +383,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -569,27 +409,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -618,19 +438,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 03dc0acc7e8c..341343e64c63 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 8a73c19222c9..699d99070a0e 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -87,15 +83,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -125,11 +113,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -174,11 +158,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags - - - -, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -224,11 +204,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,11 +253,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -309,19 +281,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -350,19 +310,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 6af9606eb3aa..1e8a431e74ee 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,11 +104,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,11 +143,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 10d6b1fb0840..446dd7d43602 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -158,11 +142,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -202,15 +182,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -256,15 +228,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java index d0fa15f2e80e..a283b451095d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index 9ff3ac10d56c..6d00e098c63f 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +79,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -146,11 +134,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -173,11 +157,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,11 +180,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,15 +203,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,11 +227,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -314,63 +278,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -403,39 +311,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) Optional> enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) Optional enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") Optional enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) Optional> enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) Optional enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") Optional enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -462,31 +338,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Optional booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Optional booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -508,11 +360,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -535,15 +383,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -569,27 +409,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -618,19 +438,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 03dc0acc7e8c..341343e64c63 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java index ceb9172c27eb..9fc5a3733847 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java @@ -55,11 +55,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,15 +84,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) Optional apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) Optional apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -175,11 +159,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -225,11 +205,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -278,11 +254,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,19 +282,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -351,19 +311,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java index 6af9606eb3aa..1e8a431e74ee 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,11 +104,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,11 +143,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java index 10d6b1fb0840..446dd7d43602 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -158,11 +142,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -202,15 +182,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -256,15 +228,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java index 76444071cff3..ca4302c65778 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java @@ -52,11 +52,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index 60dca8d13cae..f41decefb987 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -60,11 +60,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,11 +84,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -116,11 +108,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -153,11 +141,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -181,11 +165,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -209,11 +189,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -237,15 +213,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -270,11 +238,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -326,63 +290,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -416,39 +324,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -476,31 +352,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -523,11 +375,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -551,15 +399,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -586,27 +426,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -636,19 +456,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java index 8bc7d8865f35..335a70203cb7 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java @@ -55,11 +55,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java index bff64cea743e..138098e37f5b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java @@ -59,11 +59,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,15 +89,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -132,11 +120,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -182,11 +166,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -233,11 +213,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -287,11 +263,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -320,19 +292,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -362,19 +322,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java index 3cc22dfc250f..8e608dbd7499 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java @@ -54,11 +54,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -114,11 +110,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -158,11 +150,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java index bd65b8fb493b..a5a9c5fb12c5 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -77,11 +73,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,11 +95,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -133,11 +121,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -166,11 +150,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -211,15 +191,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -267,15 +239,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java index d0fa15f2e80e..a283b451095d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,11 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 5bcb0139ae49..535d828df8aa 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -56,11 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem( - - -@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem -) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,11 +79,7 @@ default ResponseEntity createXmlItem( value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize( - - -@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body -) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -110,11 +102,7 @@ default ResponseEntity fakeOuterBooleanSerialize( value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize( - - -@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body -) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -146,11 +134,7 @@ default ResponseEntity fakeOuterCompositeSerialize( value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize( - - -@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body -) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -173,11 +157,7 @@ default ResponseEntity fakeOuterNumberSerialize( value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize( - - -@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body -) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -200,11 +180,7 @@ default ResponseEntity fakeOuterStringSerialize( value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema( - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body -) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,15 +203,7 @@ default ResponseEntity testBodyWithFileSchema( value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query - - - -, - - -@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -259,11 +227,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -314,63 +278,7 @@ default ResponseEntity testClientModel( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters( - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, - - - -@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, - - - -@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -403,39 +311,7 @@ default ResponseEntity testEndpointParameters( value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters( - -@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray - -, - -@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString - -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray - - - -,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger - - - -,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble - - - -, - - - -@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, - - - -@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -462,31 +338,7 @@ default ResponseEntity testEnumParameters( method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup - - - -, - -@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup - -,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group - - - -,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup - - - -, - -@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup - -,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group - - - -) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true) @RequestHeader(value="required_boolean_group", required=true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters" ) @RequestHeader(value="boolean_group", required=false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -508,11 +360,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties( - - -@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param -) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -535,15 +383,7 @@ default ResponseEntity testInlineAdditionalProperties( value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData( - - - -@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param, - - - -@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required=true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -569,27 +409,7 @@ default ResponseEntity testJsonFormData( method = RequestMethod.PUT, value = "/fake/test-query-paramters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url - - - -,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context - - - -) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -618,19 +438,7 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 03dc0acc7e8c..341343e64c63 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,11 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname( - - -@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body -) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java index a119c7ac632b..def4cafca5cb 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java @@ -55,11 +55,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,15 +84,7 @@ default ResponseEntity addPet( method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet( -@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId - - -, - -@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey - -) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity deletePet( value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status - - - -) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -175,11 +159,7 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags - - - -) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -225,11 +205,7 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById( -@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId - - -) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathVariable("petId") Long petId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -278,11 +254,7 @@ default ResponseEntity getPetById( value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet( - - -@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body -) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,19 +282,7 @@ default ResponseEntity updatePet( value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm( -@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, - - - -@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -351,19 +311,7 @@ default ResponseEntity updatePetWithForm( produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile( -@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId - - -, - - - -@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, - - - -@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java index 6af9606eb3aa..1e8a431e74ee 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java @@ -50,11 +50,7 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder( -@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId - - -) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathVariable("order_id") String orderId) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,11 +104,7 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById( -@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId - - -) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,11 +143,7 @@ default ResponseEntity getOrderById( value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder( - - -@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body -) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java index 10d6b1fb0840..446dd7d43602 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java @@ -47,11 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser( - - -@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,11 +68,7 @@ default ResponseEntity createUser( method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,11 +89,7 @@ default ResponseEntity createUsersWithArrayInput( method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput( - - -@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body -) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -126,11 +114,7 @@ default ResponseEntity createUsersWithListInput( method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser( -@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -158,11 +142,7 @@ default ResponseEntity deleteUser( value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName( -@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username - - -) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathVariable("username") String username) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -202,15 +182,7 @@ default ResponseEntity getUserByName( value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username - - - -,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password - - - -) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -256,15 +228,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser( -@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username - - -, - - -@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body -) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } From 0e756960befe77d4e1b87eecb74ecbe9934e3bad Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Thu, 2 Sep 2021 00:50:27 -0400 Subject: [PATCH 09/21] Get closer to master --- .../src/main/resources/JavaSpring/api.mustache | 3 --- .../src/main/resources/JavaSpring/bodyParams.mustache | 2 +- .../src/main/resources/JavaSpring/headerParams.mustache | 2 +- .../src/main/resources/JavaSpring/pathParams.mustache | 2 +- .../src/main/resources/JavaSpring/queryParams.mustache | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache index 9a13aec59f65..6647b5f084e5 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache @@ -48,9 +48,6 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.http.codec.multipart.Part; {{/reactive}} -{{#useSpringfox}} -import springfox.documentation.annotations.ApiIgnore; -{{/useSpringfox}} {{#useBeanValidation}} import javax.validation.Valid; diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache index cffced9787f5..440e0083e320 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache @@ -1 +1 @@ -{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues="{{{.}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file +{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValue = "{{{.}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}} @Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache index b2802dae810b..370f038f80c1 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache @@ -1 +1 @@ -{{#isHeaderParam}}{{#oas3}}@Parameter(description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}" {{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues="{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value="{{baseName}}", required={{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} \ No newline at end of file +{{#isHeaderParam}}{{#oas3}}@Parameter(description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value = "{{baseName}}", required = {{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache index 534ca64d2b6a..3108af6feb71 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache @@ -1 +1 @@ -{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{baseName}}", description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}},required=true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaEscapeDoubleQuote}}{{{value}}}{{/lambdaEscapeDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} \ No newline at end of file +{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{baseName}}", description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaRemoveDoubleQuote}}{{{value}}}{{/lambdaRemoveDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache index df938d5b5c24..77e79f56ae2e 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache @@ -1 +1 @@ -{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} \ No newline at end of file +{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}){{#useBeanValidation}} @Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} \ No newline at end of file From d31f9450ab0e76582f198cd7ee3ac7113271a5d6 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Thu, 2 Sep 2021 00:54:24 -0400 Subject: [PATCH 10/21] Remove SpringFox setter boolean - Annotation was altered to be fully qualified, doesn't need import removed anymore --- docs/generators/spring.md | 1 - .../codegen/languages/SpringCodegen.java | 21 ++----------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/docs/generators/spring.md b/docs/generators/spring.md index 7a64bf14727b..d230515bb961 100644 --- a/docs/generators/spring.md +++ b/docs/generators/spring.md @@ -71,7 +71,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl |unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).| |false| |useBeanValidation|Use BeanValidation API annotations| |true| |useOptional|Use Optional container for optional parameters| |false| -|useSpringfox|Whether or not to use Springfox. Defaults to true| |true| |useTags|use tags for creating interface and controller classnames| |false| |virtualService|Generates the virtual service. For more details refer - https://github.com/virtualansoftware/virtualan/wiki| |false| |withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false| diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index d117dbc96332..363f48dc339c 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -70,7 +70,6 @@ public class SpringCodegen extends AbstractJavaCodegen public static final String API_FIRST = "apiFirst"; public static final String OAS3 = "oas3"; public static final String SPRING_CONTROLLER = "springController"; - public static final String USE_SPRING_FOX = "useSpringfox"; public static final String HATEOAS = "hateoas"; public static final String RETURN_SUCCESS_CODE = "returnSuccessCode"; public static final String UNHANDLED_EXCEPTION_HANDLING = "unhandledException"; @@ -103,7 +102,6 @@ public class SpringCodegen extends AbstractJavaCodegen protected boolean unhandledException = false; protected boolean useSpringController = false; protected boolean oas3 = false; - protected boolean useSpringfox = true; public SpringCodegen() { super(); @@ -178,7 +176,6 @@ public SpringCodegen() { cliOptions.add(CliOption.newBoolean(RETURN_SUCCESS_CODE, "Generated server returns 2xx code", returnSuccessCode)); cliOptions.add(CliOption.newBoolean(OAS3, "Use OAS 3 Swagger annotations instead of OAS 2 annotations", oas3)); cliOptions.add(CliOption.newBoolean(SPRING_CONTROLLER, "Annotate the generated API as a Spring Controller", useSpringController)); - cliOptions.add(CliOption.newBoolean(USE_SPRING_FOX, "Whether or not to use Springfox. Defaults to true", useSpringfox)); cliOptions.add(CliOption.newBoolean(UNHANDLED_EXCEPTION_HANDLING, "Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).", unhandledException)); supportedLibraries.put(SPRING_BOOT, "Spring-boot Server application using the SpringFox integration."); @@ -344,10 +341,6 @@ public void processOpts() { this.setOas3(Boolean.parseBoolean(additionalProperties.get(OAS3).toString())); } - if (additionalProperties.containsKey(USE_SPRING_FOX)) { - this.setUseSpringfox(Boolean.parseBoolean(additionalProperties.get(USE_SPRING_FOX).toString())); - } - if (additionalProperties.containsKey(RETURN_SUCCESS_CODE)) { this.setReturnSuccessCode(Boolean.parseBoolean(additionalProperties.get(RETURN_SUCCESS_CODE).toString())); } @@ -472,16 +465,10 @@ public void processOpts() { additionalProperties.put(RESPONSE_WRAPPER, "Callable"); } - - if (this.useSpringfox) { - // if apiFirst or reactive are enabled, then springfox cannot be used. Check if they are active - // before enabling. - if (!this.apiFirst && !this.reactive) { - additionalProperties.put("useSpringfox", true); - } + if (!this.apiFirst && !this.reactive) { + additionalProperties.put("useSpringfox", true); } - // Some well-known Spring or Spring-Cloud response wrappers if (isNotEmpty(this.responseWrapper)) { additionalProperties.put("jdk8", false); @@ -839,10 +826,6 @@ public void setOas3(boolean oas3) { this.oas3 = oas3; } - public void setUseSpringfox(boolean useSpringfox) { - this.useSpringfox = useSpringfox; - } - public void setReturnSuccessCode(boolean returnSuccessCode) { this.returnSuccessCode = returnSuccessCode; } From 814ff7fdb871a2d92be914ade923020ed1971b3d Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Thu, 2 Sep 2021 00:57:13 -0400 Subject: [PATCH 11/21] Update examples and tests --- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../api/AnotherFakeApiController.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeApiController.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../api/FakeClassnameTestApiController.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../org/openapitools/api/PetApiController.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../openapitools/api/StoreApiController.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../openapitools/api/UserApiController.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../api/AnotherFakeApiController.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeApiController.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../api/FakeClassnameTestApiController.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../org/openapitools/api/PetApiController.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../openapitools/api/StoreApiController.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../openapitools/api/UserApiController.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../api/AnotherFakeApiController.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeApiController.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../api/FakeClassnameTestApiController.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../org/openapitools/api/PetApiController.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../openapitools/api/StoreApiController.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../openapitools/api/UserApiController.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- .../virtualan/api/AnotherFakeApi.java | 2 +- .../openapitools/virtualan/api/FakeApi.java | 18 +++++++++--------- .../virtualan/api/FakeClassnameTestApi.java | 2 +- .../org/openapitools/virtualan/api/PetApi.java | 4 ++-- .../openapitools/virtualan/api/StoreApi.java | 2 +- .../openapitools/virtualan/api/UserApi.java | 8 ++++---- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../main/java/org/openapitools/api/PetApi.java | 4 ++-- .../java/org/openapitools/api/StoreApi.java | 2 +- .../java/org/openapitools/api/UserApi.java | 8 ++++---- 141 files changed, 413 insertions(+), 413 deletions(-) diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java index b68adcc40ea2..103c961f548b 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java @@ -47,7 +47,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -183,7 +183,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java index 627c1730e10c..85acb4cc90c8 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java @@ -116,6 +116,6 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body); + CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java index 663a6dce3ae9..1f2a8e44dd91 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java @@ -43,7 +43,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - CompletableFuture> createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body); + CompletableFuture> createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -61,7 +61,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -79,7 +79,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -189,6 +189,6 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body); + CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 1ce304c91589..471ca645a491 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -46,7 +46,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -182,7 +182,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 08ffaa1cb3a0..e03a4fbf787b 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -115,6 +115,6 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body); + com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 0a240e429953..e928628d6933 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -60,7 +60,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -78,7 +78,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -188,6 +188,6 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 9092a0edaaab..e9ce789c2318 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -46,7 +46,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -182,7 +182,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 7387b1bf50bf..020710438f38 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -115,6 +115,6 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index e8371d96d28e..2d2bd1ee075d 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body); + ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -60,7 +60,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -78,7 +78,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -205,6 +205,6 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index 1ce304c91589..471ca645a491 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -46,7 +46,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -182,7 +182,7 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 08ffaa1cb3a0..e03a4fbf787b 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -115,6 +115,6 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body); + com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index 0a240e429953..e928628d6933 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -60,7 +60,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -78,7 +78,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -188,6 +188,6 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body); + com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java index a5f2c662c5dc..911872b69728 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { value = "/pet", consumes = "application/json" ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,7 +243,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = "application/json" ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java index 04b10b3ee348..65d8cdd72ec0 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java @@ -142,7 +142,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = "application/json" ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java index 1d1b9db971cb..ebba62883d7a 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +67,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +227,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java index 04bb3c3d0a9e..477c68f674cc 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,7 +48,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default CompletableFuture> call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java index 4e7973b0dea3..1826ad2fb3a3 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java @@ -56,7 +56,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default CompletableFuture> createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default CompletableFuture> createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -79,7 +79,7 @@ default CompletableFuture> createXmlItem(@ApiParam(value = value = "/fake/outer/boolean", produces = { "*/*" } ) - default CompletableFuture> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default CompletableFuture> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -102,7 +102,7 @@ default CompletableFuture> fakeOuterBooleanSerialize(@Ap value = "/fake/outer/composite", produces = { "*/*" } ) - default CompletableFuture> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default CompletableFuture> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -136,7 +136,7 @@ default CompletableFuture> fakeOuterCompositeSeri value = "/fake/outer/number", produces = { "*/*" } ) - default CompletableFuture> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default CompletableFuture> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -159,7 +159,7 @@ default CompletableFuture> fakeOuterNumberSerialize(@ value = "/fake/outer/string", produces = { "*/*" } ) - default CompletableFuture> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default CompletableFuture> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -182,7 +182,7 @@ default CompletableFuture> fakeOuterStringSerialize(@ApiP value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default CompletableFuture> testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -205,7 +205,7 @@ default CompletableFuture> testBodyWithFileSchema(@ApiParam value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -229,7 +229,7 @@ default CompletableFuture> testBodyWithQueryParams(@NotNull produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default CompletableFuture> testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -364,7 +364,7 @@ default CompletableFuture> testGroupParameters(@NotNull @Ap value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default CompletableFuture> testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default CompletableFuture> testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 75dc3fe9253b..2328c3dd8098 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,7 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default CompletableFuture> testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java index 3f3047b3d948..edbacf143e6e 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java @@ -55,7 +55,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -260,7 +260,7 @@ default CompletableFuture> getPetById(@ApiParam(value = "ID value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java index e493d1376a3e..c0c73941bd3d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java @@ -145,7 +145,7 @@ default CompletableFuture> getOrderById(@Min(1L) @Max(5L) value = "/store/order", produces = { "application/xml", "application/json" } ) - default CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java index 21b512031f74..8348637545f7 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java @@ -47,7 +47,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default CompletableFuture> createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default CompletableFuture> createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -68,7 +68,7 @@ default CompletableFuture> createUser(@ApiParam(value = "Cr method = RequestMethod.POST, value = "/user/createWithArray" ) - default CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -89,7 +89,7 @@ default CompletableFuture> createUsersWithArrayInput(@ApiPa method = RequestMethod.POST, value = "/user/createWithList" ) - default CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -230,7 +230,7 @@ default CompletableFuture> logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1e48f5b097b8..1605c39b917a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java index 5601f4baad73..9c0f235798cf 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +78,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +101,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +133,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +156,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +179,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +202,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +226,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -359,7 +359,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b7c4a9b6bc36..be7512ba6d60 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java index 3f3297b19f03..05cb0990dfe1 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -253,7 +253,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java index ac897e89ddb1..dff51097cc07 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java @@ -142,7 +142,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java index 159fd1b15214..d7a5431561a9 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +67,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +227,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1e48f5b097b8..1605c39b917a 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 40d87c3fce91..143b87377047 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +78,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +101,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +133,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +156,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +179,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +202,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +226,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -359,7 +359,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b7c4a9b6bc36..be7512ba6d60 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 3f3297b19f03..05cb0990dfe1 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -253,7 +253,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index ac897e89ddb1..dff51097cc07 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -142,7 +142,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 159fd1b15214..d7a5431561a9 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +67,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +227,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1e48f5b097b8..1605c39b917a 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index ffd6b767ef65..5f85cf9dc454 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +78,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +101,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +133,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +156,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +179,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +202,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +226,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -359,7 +359,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b7c4a9b6bc36..be7512ba6d60 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 0b42855d24c5..7ca2b0f26f2e 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -53,7 +53,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -252,7 +252,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index ac897e89ddb1..dff51097cc07 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -142,7 +142,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 159fd1b15214..d7a5431561a9 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +67,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +227,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1e48f5b097b8..1605c39b917a 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java index 40d87c3fce91..143b87377047 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +78,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +101,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +133,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +156,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +179,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +202,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +226,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -359,7 +359,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b7c4a9b6bc36..be7512ba6d60 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java index 3f3297b19f03..05cb0990dfe1 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -253,7 +253,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java index ac897e89ddb1..dff51097cc07 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java @@ -142,7 +142,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java index 159fd1b15214..d7a5431561a9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +67,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +227,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 6f33544d1643..0e00ef82101a 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -39,6 +39,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java index e22ac97a74a4..7e7db5c514d2 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -40,7 +40,7 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 20ffb7175f66..77142bcb6658 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -47,7 +47,7 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -67,7 +67,7 @@ public interface FakeApi { value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -87,7 +87,7 @@ public interface FakeApi { value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -107,7 +107,7 @@ public interface FakeApi { value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -127,7 +127,7 @@ public interface FakeApi { value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -147,7 +147,7 @@ public interface FakeApi { value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -167,7 +167,7 @@ public interface FakeApi { value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body); /** @@ -188,7 +188,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body); + ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); /** @@ -300,7 +300,7 @@ public interface FakeApi { value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param); /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java index ab53df36903a..9ee9d11cb9c0 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java @@ -49,7 +49,7 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -62,7 +62,7 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -75,7 +75,7 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -95,7 +95,7 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,7 +108,7 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -121,7 +121,7 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -134,7 +134,7 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -147,7 +147,7 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -232,7 +232,7 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 0860b81c452a..9b39401fe1a4 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -42,6 +42,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body); + ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 14b1f124d13f..4b7f7b72e8aa 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -40,7 +40,7 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + public ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java index e891458e11e8..f2b3c76aa707 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -46,7 +46,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -188,7 +188,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java index f2945cc6db34..39a56f05d297 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java @@ -42,7 +42,7 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -151,7 +151,7 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", r * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 04d8dfed2b53..8ace2d21dfc4 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -111,6 +111,6 @@ public interface StoreApi { value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java index 4e95605bddbc..3b1ec152fe18 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java @@ -94,7 +94,7 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 8a194213f16b..01a7d1b39fad 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -38,7 +38,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body); + ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -56,7 +56,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -74,7 +74,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -184,6 +184,6 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java index 9f5ad372d5a8..4cb76612c3e8 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java @@ -41,7 +41,7 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + public ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -53,7 +53,7 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object", * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,7 +65,7 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,7 +145,7 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1e48f5b097b8..1605c39b917a 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index 40d87c3fce91..143b87377047 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +78,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +101,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +133,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +156,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +179,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +202,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +226,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -359,7 +359,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b7c4a9b6bc36..be7512ba6d60 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java index 3f3297b19f03..05cb0990dfe1 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -253,7 +253,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java index ac897e89ddb1..dff51097cc07 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java @@ -142,7 +142,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java index 159fd1b15214..d7a5431561a9 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +67,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +227,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index e8da5176d8db..c965be6ec797 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -43,7 +43,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index 24dfac468f2b..68894880cc49 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -73,7 +73,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -95,7 +95,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -117,7 +117,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -139,7 +139,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -161,7 +161,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -183,7 +183,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -206,7 +206,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -326,7 +326,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 5983260fdd93..232f7156941f 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -46,7 +46,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java index 89cf682b5315..cc3d744a9a2c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java @@ -50,7 +50,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -202,7 +202,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java index fdfe5c673064..aae41fd2fd50 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -121,7 +121,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java index 662e144c7f3d..2836b8971f42 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,7 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -62,7 +62,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -82,7 +82,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -202,7 +202,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java index e8da5176d8db..c965be6ec797 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -43,7 +43,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index 24dfac468f2b..68894880cc49 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -73,7 +73,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -95,7 +95,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -117,7 +117,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -139,7 +139,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -161,7 +161,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -183,7 +183,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -206,7 +206,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -326,7 +326,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 5983260fdd93..232f7156941f 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -46,7 +46,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java index 89cf682b5315..cc3d744a9a2c 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java @@ -50,7 +50,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -202,7 +202,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java index fdfe5c673064..aae41fd2fd50 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java @@ -121,7 +121,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java index 662e144c7f3d..2836b8971f42 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,7 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -62,7 +62,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -82,7 +82,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -202,7 +202,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java index 122d46c1ceeb..9fb46d278d55 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -49,7 +49,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index 4af39de1aa4f..dd62452ee179 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -57,7 +57,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,7 +82,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -107,7 +107,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -141,7 +141,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -166,7 +166,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -191,7 +191,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -216,7 +216,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -242,7 +242,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -383,7 +383,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 407a675f0872..e6bf500d80c0 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -52,7 +52,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java index 160f88893f6d..acf479468f18 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java @@ -56,7 +56,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -265,7 +265,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java index 0863345a1114..de5e4eae3ad7 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java @@ -150,7 +150,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java index fa071ad81ab3..e54b7ea67f2d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java @@ -48,7 +48,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,7 +71,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,7 +94,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,7 +243,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java index 528f1687168c..5d8ddb910166 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().call123testSpecialTags(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index 4fefbdf0d23e..afa5e5e0ff3b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default Mono> createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody Mono xmlItem, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody Mono xmlItem, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().createXmlItem(xmlItem, exchange); } @@ -77,7 +77,7 @@ default Mono> createXmlItem(@ApiParam(value = "XmlItem Body value = "/fake/outer/boolean", produces = { "*/*" } ) - default Mono> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterBooleanSerialize(body, exchange); } @@ -99,7 +99,7 @@ default Mono> fakeOuterBooleanSerialize(@ApiParam(value value = "/fake/outer/composite", produces = { "*/*" } ) - default Mono> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterCompositeSerialize(body, exchange); } @@ -121,7 +121,7 @@ default Mono> fakeOuterCompositeSerialize(@ApiPar value = "/fake/outer/number", produces = { "*/*" } ) - default Mono> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterNumberSerialize(body, exchange); } @@ -143,7 +143,7 @@ default Mono> fakeOuterNumberSerialize(@ApiParam(valu value = "/fake/outer/string", produces = { "*/*" } ) - default Mono> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterStringSerialize(body, exchange); } @@ -165,7 +165,7 @@ default Mono> fakeOuterStringSerialize(@ApiParam(value = value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default Mono> testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithFileSchema(body, exchange); } @@ -187,7 +187,7 @@ default Mono> testBodyWithFileSchema(@ApiParam(value = "", value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithQueryParams(query, body, exchange); } @@ -210,7 +210,7 @@ default Mono> testBodyWithQueryParams(@NotNull @ApiParam(va produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClientModel(body, exchange); } @@ -330,7 +330,7 @@ default Mono> testGroupParameters(@NotNull @ApiParam(value value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default Mono> testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Mono> param, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Mono> param, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testInlineAdditionalProperties(param, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index bf1d13787862..6c694d4115c7 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClassname(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java index b4517bc179e6..92bef3255ba2 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().addPet(body, exchange); } @@ -206,7 +206,7 @@ default Mono> getPetById(@ApiParam(value = "ID of pet to ret value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePet(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java index 220c87a7869d..f641d739cf27 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java @@ -125,7 +125,7 @@ default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(val value = "/store/order", produces = { "application/xml", "application/json" } ) - default Mono> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().placeOrder(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java index 46171a69c7d7..4b5b51d33df1 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default Mono> createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUser(body, exchange); } @@ -66,7 +66,7 @@ default Mono> createUser(@ApiParam(value = "Created user ob method = RequestMethod.POST, value = "/user/createWithArray" ) - default Mono> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody Flux body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody Flux body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithArrayInput(body, exchange); } @@ -86,7 +86,7 @@ default Mono> createUsersWithArrayInput(@ApiParam(value = " method = RequestMethod.POST, value = "/user/createWithList" ) - default Mono> createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody Flux body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody Flux body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithListInput(body, exchange); } @@ -206,7 +206,7 @@ default Mono> logoutUser(@springfox.documentation.annotatio method = RequestMethod.PUT, value = "/user/{username}" ) - default Mono> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().updateUser(username, body, exchange); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 6f33544d1643..0e00ef82101a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -39,6 +39,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 98cbe886cf68..adac081073b1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -38,7 +38,7 @@ public AnotherFakeApiController(@org.springframework.beans.factory.annotation.Au * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return delegate.call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 44b7f3321443..36cdea9be1a1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -47,7 +47,7 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -67,7 +67,7 @@ public interface FakeApi { value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -87,7 +87,7 @@ public interface FakeApi { value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -107,7 +107,7 @@ public interface FakeApi { value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -127,7 +127,7 @@ public interface FakeApi { value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -147,7 +147,7 @@ public interface FakeApi { value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -167,7 +167,7 @@ public interface FakeApi { value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body); /** @@ -188,7 +188,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body); + ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); /** @@ -300,7 +300,7 @@ public interface FakeApi { value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param); /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 8fc941c75459..4f740b3706f3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -47,7 +47,7 @@ public FakeApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return delegate.createXmlItem(xmlItem); } @@ -59,7 +59,7 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return delegate.fakeOuterBooleanSerialize(body); } @@ -71,7 +71,7 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return delegate.fakeOuterCompositeSerialize(body); } @@ -83,7 +83,7 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return delegate.fakeOuterNumberSerialize(body); } @@ -95,7 +95,7 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return delegate.fakeOuterStringSerialize(body); } @@ -107,7 +107,7 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return delegate.testBodyWithFileSchema(body); } @@ -119,7 +119,7 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return delegate.testBodyWithQueryParams(query, body); } @@ -131,7 +131,7 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return delegate.testClientModel(body); } @@ -205,7 +205,7 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return delegate.testInlineAdditionalProperties(param); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 0860b81c452a..9b39401fe1a4 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -42,6 +42,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body); + ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index e2e76a05e8cd..0b363c4f3d33 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -38,7 +38,7 @@ public FakeClassnameTestApiController(@org.springframework.beans.factory.annotat * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + public ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return delegate.testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java index 1e2169b3ad81..3a1361380316 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -45,7 +45,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -187,7 +187,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java index 5b91410b4518..96fe2803383b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -39,7 +39,7 @@ public PetApiController(@org.springframework.beans.factory.annotation.Autowired( * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return delegate.addPet(body); } @@ -107,7 +107,7 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", r * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return delegate.updatePet(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java index 04d8dfed2b53..8ace2d21dfc4 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -111,6 +111,6 @@ public interface StoreApi { value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index d662f8581370..db0bd68f0180 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -77,7 +77,7 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return delegate.placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java index 8a194213f16b..01a7d1b39fad 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -38,7 +38,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body); + ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -56,7 +56,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -74,7 +74,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -184,6 +184,6 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java index 642c9683055b..7703461e0db2 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -39,7 +39,7 @@ public UserApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + public ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return delegate.createUser(body); } @@ -50,7 +50,7 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object", * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return delegate.createUsersWithArrayInput(body); } @@ -61,7 +61,7 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return delegate.createUsersWithListInput(body); } @@ -124,7 +124,7 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return delegate.updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java index e8da5176d8db..c965be6ec797 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -43,7 +43,7 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index 10574edcf1a1..dcedca5cb3ab 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,7 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -73,7 +73,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -95,7 +95,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -117,7 +117,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -139,7 +139,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -161,7 +161,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -183,7 +183,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -206,7 +206,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -326,7 +326,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 5983260fdd93..232f7156941f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -46,7 +46,7 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java index 40b18fa8afd1..dabdafac7f49 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java @@ -49,7 +49,7 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -201,7 +201,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java index fdfe5c673064..aae41fd2fd50 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java @@ -121,7 +121,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java index 662e144c7f3d..2836b8971f42 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,7 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -62,7 +62,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -82,7 +82,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -202,7 +202,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 6f33544d1643..0e00ef82101a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -39,6 +39,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index e22ac97a74a4..7e7db5c514d2 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -40,7 +40,7 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 44b7f3321443..36cdea9be1a1 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -47,7 +47,7 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -67,7 +67,7 @@ public interface FakeApi { value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -87,7 +87,7 @@ public interface FakeApi { value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -107,7 +107,7 @@ public interface FakeApi { value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -127,7 +127,7 @@ public interface FakeApi { value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -147,7 +147,7 @@ public interface FakeApi { value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -167,7 +167,7 @@ public interface FakeApi { value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body); /** @@ -188,7 +188,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body); + ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); /** @@ -300,7 +300,7 @@ public interface FakeApi { value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param); /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 99873d39bc34..448584fc4a2a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -49,7 +49,7 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -62,7 +62,7 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -75,7 +75,7 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -95,7 +95,7 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,7 +108,7 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -121,7 +121,7 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -134,7 +134,7 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -147,7 +147,7 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -232,7 +232,7 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 0860b81c452a..9b39401fe1a4 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -42,6 +42,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body); + ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 14b1f124d13f..4b7f7b72e8aa 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -40,7 +40,7 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + public ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java index 1e2169b3ad81..3a1361380316 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -45,7 +45,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -187,7 +187,7 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java index 4d2e1b7626f8..bb7a39e81bd0 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -41,7 +41,7 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -150,7 +150,7 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", r * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java index 04d8dfed2b53..8ace2d21dfc4 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -111,6 +111,6 @@ public interface StoreApi { value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index 4e95605bddbc..3b1ec152fe18 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -94,7 +94,7 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java index 8a194213f16b..01a7d1b39fad 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -38,7 +38,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body); + ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -56,7 +56,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -74,7 +74,7 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -184,6 +184,6 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java index 9f5ad372d5a8..4cb76612c3e8 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -41,7 +41,7 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + public ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -53,7 +53,7 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object", * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,7 +65,7 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,7 +145,7 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1e48f5b097b8..1605c39b917a 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index ffd6b767ef65..5f85cf9dc454 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +78,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +101,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +133,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +156,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +179,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +202,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +226,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -359,7 +359,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b7c4a9b6bc36..be7512ba6d60 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 0b42855d24c5..7ca2b0f26f2e 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -53,7 +53,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -252,7 +252,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index ac897e89ddb1..dff51097cc07 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -142,7 +142,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 159fd1b15214..d7a5431561a9 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +67,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +227,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1e48f5b097b8..1605c39b917a 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index 92063350c5c7..171377cd7ee6 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +78,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +101,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +133,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +156,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +179,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +202,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +226,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -359,7 +359,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b7c4a9b6bc36..be7512ba6d60 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java index 175fd8bc562d..9937c7fa36ed 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -253,7 +253,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java index ac897e89ddb1..dff51097cc07 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java @@ -142,7 +142,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java index 159fd1b15214..d7a5431561a9 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +67,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +227,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java index 3c583fe11553..2f614b6583f4 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java @@ -51,7 +51,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index 8263f690b68a..c3cc46124bef 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -59,7 +59,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,7 +83,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -107,7 +107,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -140,7 +140,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -164,7 +164,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,7 +188,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,7 +212,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -237,7 +237,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -374,7 +374,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java index a4b13b839809..9e5ac27b5828 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java @@ -54,7 +54,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java index 0fae4f54ef28..09ad63ee72d2 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java @@ -58,7 +58,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -262,7 +262,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java index 5fa50b21151b..8b5963afb015 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java @@ -149,7 +149,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java index b9ebb0d50bd2..4b9d431e829d 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,7 +72,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,7 +94,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -238,7 +238,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1e48f5b097b8..1605c39b917a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 40d87c3fce91..143b87377047 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,7 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +78,7 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +101,7 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +133,7 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +156,7 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +179,7 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +202,7 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +226,7 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -359,7 +359,7 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index b7c4a9b6bc36..be7512ba6d60 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,7 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body) { + default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java index 3f3297b19f03..05cb0990dfe1 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,7 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -253,7 +253,7 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java index ac897e89ddb1..dff51097cc07 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java @@ -142,7 +142,7 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java index 159fd1b15214..d7a5431561a9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,7 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +67,7 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +227,7 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } From b01f425c0a552e109f5c008867493abc72b03f9b Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Thu, 2 Sep 2021 08:52:13 -0400 Subject: [PATCH 12/21] FIx pojo.mustache (missed update to master) and regenerate tests --- .../src/main/resources/JavaSpring/bodyParams.mustache | 2 +- .../src/main/resources/JavaSpring/pojo.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache index 440e0083e320..5afbcbb74b0c 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache @@ -1 +1 @@ -{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValue = "{{{.}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}} @Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file +{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues = "{{{.}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}} @Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache index 56dd4a47d668..b187b7a47702 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache @@ -1,7 +1,7 @@ /** * {{description}}{{^description}}{{classname}}{{/description}} */{{#description}} -{{#oas3}}@Schema({{#name}}name = "{{name}}",{{/name}}{{/oas3}}{{^oas3}}@ApiModel({{/oas3}}description = "{{{description}}}"){{/description}} +{{#oas3}}@Schema({{#name}}name = "{{name}}",{{/name}}{{/oas3}}{{^oas3}}@ApiModel({{/oas3}}description = "{{{.}}}"){{/description}} {{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}}{{>additionalModelTypeAnnotations}} public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}}{{^parent}}{{#hateoas}}extends RepresentationModel<{{classname}}> {{/hateoas}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} { {{#serializableModel}} From 087b1bf48d9bf2380927cccbcbddc06c3693c002 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Thu, 2 Sep 2021 11:43:19 -0400 Subject: [PATCH 13/21] Fix pojo.mustache extra `(` --- .../src/main/resources/JavaSpring/pojo.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache index b187b7a47702..2ebeeae5df37 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache @@ -112,7 +112,7 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}}{{^parent}}{{#ha {{#vendorExtensions.x-extra-annotation}} {{{vendorExtensions.x-extra-annotation}}} {{/vendorExtensions.x-extra-annotation}} - {{#oas3}}@Schema({{#name}}name = "{{{name}}}", {{/name}}{{/oas3}}{{^oas3}}@ApiModelProperty({{/oas3}}({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}") + {{#oas3}}@Schema({{#name}}name = "{{{name}}}", {{/name}}{{/oas3}}{{^oas3}}@ApiModelProperty({{/oas3}}{{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}") {{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{>nullableDataType}} {{getter}}() { return {{name}}; } From a30aca9ecc8e8a2ec96c0ec5271009d1fbc9581e Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Thu, 2 Sep 2021 11:46:08 -0400 Subject: [PATCH 14/21] Update tests and documentation --- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 ++--- .../org/openapitools/model/TestResponse.java | 8 +-- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../openapitools/virtualan/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../virtualan/model/ArrayOfNumberOnly.java | 2 +- .../virtualan/model/ArrayTest.java | 6 +- .../openapitools/virtualan/model/BigCat.java | 2 +- .../virtualan/model/BigCatAllOf.java | 2 +- .../virtualan/model/Capitalization.java | 12 ++-- .../org/openapitools/virtualan/model/Cat.java | 2 +- .../virtualan/model/CatAllOf.java | 2 +- .../virtualan/model/Category.java | 4 +- .../virtualan/model/ClassModel.java | 2 +- .../openapitools/virtualan/model/Client.java | 2 +- .../org/openapitools/virtualan/model/Dog.java | 2 +- .../virtualan/model/DogAllOf.java | 2 +- .../virtualan/model/EnumArrays.java | 4 +- .../virtualan/model/EnumTest.java | 10 ++-- .../virtualan/model/FileSchemaTestClass.java | 4 +- .../virtualan/model/FormatTest.java | 28 ++++----- .../virtualan/model/HasOnlyReadOnly.java | 4 +- .../openapitools/virtualan/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../virtualan/model/Model200Response.java | 4 +- .../virtualan/model/ModelApiResponse.java | 6 +- .../virtualan/model/ModelReturn.java | 2 +- .../openapitools/virtualan/model/Name.java | 8 +-- .../virtualan/model/NumberOnly.java | 2 +- .../openapitools/virtualan/model/Order.java | 12 ++-- .../virtualan/model/OuterComposite.java | 6 +- .../org/openapitools/virtualan/model/Pet.java | 12 ++-- .../virtualan/model/ReadOnlyFirst.java | 4 +- .../virtualan/model/SpecialModelName.java | 2 +- .../org/openapitools/virtualan/model/Tag.java | 4 +- .../virtualan/model/TypeHolderDefault.java | 10 ++-- .../virtualan/model/TypeHolderExample.java | 12 ++-- .../openapitools/virtualan/model/User.java | 16 ++--- .../openapitools/virtualan/model/XmlItem.java | 58 +++++++++---------- .../model/AdditionalPropertiesAnyType.java | 2 +- .../model/AdditionalPropertiesArray.java | 2 +- .../model/AdditionalPropertiesBoolean.java | 2 +- .../model/AdditionalPropertiesClass.java | 22 +++---- .../model/AdditionalPropertiesInteger.java | 2 +- .../model/AdditionalPropertiesNumber.java | 2 +- .../model/AdditionalPropertiesObject.java | 2 +- .../model/AdditionalPropertiesString.java | 2 +- .../java/org/openapitools/model/Animal.java | 4 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 +- .../java/org/openapitools/model/BigCat.java | 2 +- .../org/openapitools/model/BigCatAllOf.java | 2 +- .../openapitools/model/Capitalization.java | 12 ++-- .../main/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/CatAllOf.java | 2 +- .../java/org/openapitools/model/Category.java | 4 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../main/java/org/openapitools/model/Dog.java | 2 +- .../java/org/openapitools/model/DogAllOf.java | 2 +- .../org/openapitools/model/EnumArrays.java | 4 +- .../java/org/openapitools/model/EnumTest.java | 10 ++-- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 28 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 4 +- .../java/org/openapitools/model/MapTest.java | 8 +-- ...ropertiesAndAdditionalPropertiesClass.java | 6 +- .../openapitools/model/Model200Response.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../java/org/openapitools/model/Name.java | 8 +-- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 12 ++-- .../openapitools/model/OuterComposite.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 12 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 4 +- .../openapitools/model/SpecialModelName.java | 2 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../openapitools/model/TypeHolderDefault.java | 10 ++-- .../openapitools/model/TypeHolderExample.java | 12 ++-- .../java/org/openapitools/model/User.java | 16 ++--- .../java/org/openapitools/model/XmlItem.java | 58 +++++++++---------- 813 files changed, 2865 insertions(+), 2865 deletions(-) diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java index c292a0f47a6b..f21d835af4da 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java @@ -35,7 +35,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -55,7 +55,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java index 9e9d4ce40eb7..ec1b1b81d6a4 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -38,7 +38,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -58,7 +58,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -78,7 +78,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java index d3c447cf1a0c..2f24cd46851d 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java @@ -87,7 +87,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -107,7 +107,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -127,7 +127,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -147,7 +147,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -168,7 +168,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +188,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java index 454691be447a..a1f702f1a72f 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -111,7 +111,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -132,7 +132,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -158,7 +158,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -187,7 +187,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -208,7 +208,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java index c9060b3b00eb..8e3f67322335 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java @@ -35,7 +35,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -55,7 +55,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java index bf32080d806d..73fcf01b5375 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java @@ -53,7 +53,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -73,7 +73,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -93,7 +93,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -113,7 +113,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -133,7 +133,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -153,7 +153,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -173,7 +173,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -193,7 +193,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java index 2f0faf221ee6..e2eb32453384 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -33,7 +33,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -53,7 +53,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index ac9c418a9199..2b85999b0175 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -36,7 +36,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -56,7 +56,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -76,7 +76,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java index 6638fe48785b..fe670efa69ec 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -85,7 +85,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -105,7 +105,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -125,7 +125,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -145,7 +145,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -166,7 +166,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -186,7 +186,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java index 340ccaa3ea2d..0513ffeb0f36 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -89,7 +89,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -109,7 +109,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -130,7 +130,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java index ec7a93b81abf..e067ae023271 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -33,7 +33,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -53,7 +53,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java index b8d3e5db7f48..062860067243 100644 --- a/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/model/User.java @@ -51,7 +51,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -71,7 +71,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -91,7 +91,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -111,7 +111,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -131,7 +131,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -151,7 +151,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -171,7 +171,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -191,7 +191,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java index c292a0f47a6b..f21d835af4da 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -35,7 +35,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -55,7 +55,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index 9e9d4ce40eb7..ec1b1b81d6a4 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -38,7 +38,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -58,7 +58,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -78,7 +78,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java index d3c447cf1a0c..2f24cd46851d 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -87,7 +87,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -107,7 +107,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -127,7 +127,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -147,7 +147,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -168,7 +168,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +188,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java index 454691be447a..a1f702f1a72f 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -111,7 +111,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -132,7 +132,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -158,7 +158,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -187,7 +187,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -208,7 +208,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java index c9060b3b00eb..8e3f67322335 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -35,7 +35,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -55,7 +55,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java index bf32080d806d..73fcf01b5375 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -53,7 +53,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -73,7 +73,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -93,7 +93,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -113,7 +113,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -133,7 +133,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -153,7 +153,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -173,7 +173,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -193,7 +193,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java index 5ed982f3c2a4..ae728150a9ee 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java index 13f3d41ab028..0571fe8a3060 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java index 11d371c1659e..6be72e63e33c 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java index 91fc8792ada9..333fb7361372 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java @@ -90,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -110,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -131,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -157,7 +157,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -186,7 +186,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -207,7 +207,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java index 9ef543d62ff8..e00e21acfced 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java index 5de6b4ef9668..518401c0b8dc 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java index c292a0f47a6b..f21d835af4da 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java @@ -35,7 +35,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -55,7 +55,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java index 9e9d4ce40eb7..ec1b1b81d6a4 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -38,7 +38,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -58,7 +58,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -78,7 +78,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java index d3c447cf1a0c..2f24cd46851d 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java @@ -87,7 +87,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -107,7 +107,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -127,7 +127,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -147,7 +147,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -168,7 +168,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -188,7 +188,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java index 454691be447a..a1f702f1a72f 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -111,7 +111,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -132,7 +132,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -158,7 +158,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -187,7 +187,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -208,7 +208,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java index c9060b3b00eb..8e3f67322335 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java @@ -35,7 +35,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -55,7 +55,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java index bf32080d806d..73fcf01b5375 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java @@ -53,7 +53,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -73,7 +73,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -93,7 +93,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -113,7 +113,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -133,7 +133,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -153,7 +153,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -173,7 +173,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -193,7 +193,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java index 0d4189a6d04c..e7115a5f13b9 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/model/TestResponse.java @@ -41,7 +41,7 @@ public TestResponse id(Integer id) { * Get id * @return id */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public TestResponse stringField(String stringField) { * Get stringField * @return stringField */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -83,7 +83,7 @@ public TestResponse numberField(BigDecimal numberField) { * Get numberField * @return numberField */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -105,7 +105,7 @@ public TestResponse booleanField(Boolean booleanField) { * Get booleanField * @return booleanField */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java index 0c3fd2d0c222..1835c7bf2114 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java index 2f39d2a48f37..43555f5bfed0 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java index 20bd76aecaa9..7f4aa1ef8b12 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java index 0c3fd2d0c222..1835c7bf2114 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java index 2f39d2a48f37..43555f5bfed0 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java index a2fc6a711716..1eb518cb89d3 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(LocalDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 01ebe7245327..04802633a427 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(LocalDateTime dateTi * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java index b7a516852ed5..593ed335a0fd 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(LocalDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java index 20bd76aecaa9..7f4aa1ef8b12 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 741debc6d5c8..54acb5633367 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -32,7 +32,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 89f5a326a1e6..af849ea35e73 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -33,7 +33,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index fb8c65d89390..e494b1b2c600 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -32,7 +32,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 5c49de9aa177..00ab9b250fb4 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -80,7 +80,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -108,7 +108,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -137,7 +137,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -165,7 +165,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -193,7 +193,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -251,7 +251,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index c23842367b03..d15054d62914 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -42,7 +42,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java index 3ec888afe636..d6ac2177926c 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java @@ -50,7 +50,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -78,7 +78,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -107,7 +107,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java index 86fdf24e6223..d2ece0d81f96 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCat.java @@ -72,7 +72,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java index d188afc0122f..a280a3f6cdcf 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -70,7 +70,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java index 484259e9d15b..a064557cd58a 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Capitalization.java @@ -45,7 +45,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -65,7 +65,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -85,7 +85,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -105,7 +105,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -125,7 +125,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -145,7 +145,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java index 05e368fa614a..fc4ab35c4fa2 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Cat.java @@ -32,7 +32,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java index 82d68b3bbb17..9a1f6caceff6 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java @@ -30,7 +30,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java index 91d7fdecfba8..250c280e8b17 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -33,7 +33,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -53,7 +53,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java index 49665b80c9cf..24a57ea3f813 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ClassModel.java @@ -31,7 +31,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java index 1cd62cba5578..2b17053e1e65 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Client.java @@ -30,7 +30,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java index 85ed6ab9749c..e1f27783a597 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Dog.java @@ -32,7 +32,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java index dc08722441e3..05f26186f9a2 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java @@ -30,7 +30,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java index 432225ed1e25..e8101183905e 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java @@ -107,7 +107,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java index bc71ff3bc2f7..20672ddb0ff3 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/EnumTest.java @@ -188,7 +188,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -208,7 +208,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -229,7 +229,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -249,7 +249,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -269,7 +269,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index ca6ed483180f..85e4c7200171 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -36,7 +36,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -65,7 +65,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java index e6e7dc644e4f..0379f1c5c6e1 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/FormatTest.java @@ -78,7 +78,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -100,7 +100,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -120,7 +120,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -142,7 +142,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -166,7 +166,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -188,7 +188,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -208,7 +208,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -228,7 +228,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -249,7 +249,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -270,7 +270,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -292,7 +292,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -313,7 +313,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -334,7 +334,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -355,7 +355,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index b7c61c9eacc0..f4b869294be5 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -33,7 +33,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -53,7 +53,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java index e1f9541f0d50..feba6551cdb2 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MapTest.java @@ -90,7 +90,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -119,7 +119,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -147,7 +147,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -175,7 +175,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 48c769f5939e..abbc1403bb6f 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -44,7 +44,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -65,7 +65,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -94,7 +94,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java index f8262ba9cdbf..513c6029234f 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Model200Response.java @@ -34,7 +34,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -54,7 +54,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 605119fc9c32..8e7128437969 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -36,7 +36,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -56,7 +56,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -76,7 +76,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java index fbee37e63f22..0c8859109559 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java @@ -31,7 +31,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java index a94107c9d205..5551de4c5438 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Name.java @@ -40,7 +40,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -61,7 +61,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -81,7 +81,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -101,7 +101,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java index 2ce35ee71d17..4f9793f1e12a 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java @@ -31,7 +31,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java index ec0bf9640811..89be413bc219 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -85,7 +85,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -105,7 +105,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -125,7 +125,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -145,7 +145,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -166,7 +166,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -186,7 +186,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java index da76e2318cab..e365d6f2f39e 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java @@ -37,7 +37,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -58,7 +58,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -78,7 +78,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java index f37a725a9636..9ca0be9230b8 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -111,7 +111,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -132,7 +132,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -190,7 +190,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -211,7 +211,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index fdc6d8140550..f31a23539b97 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -33,7 +33,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -53,7 +53,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java index 74acc7ed222a..36c8e903bf46 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -30,7 +30,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java index e480c097f28d..a6afe72ee647 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -33,7 +33,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -53,7 +53,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 2a0c54ce6f99..529910bf9e05 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -46,7 +46,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -67,7 +67,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -89,7 +89,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -110,7 +110,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -139,7 +139,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java index 0e2a298f6b87..6f9abf43c41e 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -49,7 +49,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -70,7 +70,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -92,7 +92,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -113,7 +113,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -134,7 +134,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -163,7 +163,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java index caf611d2303c..523bd4962749 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/User.java @@ -51,7 +51,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -71,7 +71,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -91,7 +91,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -111,7 +111,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -131,7 +131,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -151,7 +151,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -171,7 +171,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -191,7 +191,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java index 894569dc1181..2eb5145f1970 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/model/XmlItem.java @@ -126,7 +126,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -146,7 +146,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -167,7 +167,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -187,7 +187,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -215,7 +215,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -235,7 +235,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -255,7 +255,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -276,7 +276,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -296,7 +296,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -324,7 +324,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -352,7 +352,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -372,7 +372,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -392,7 +392,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -413,7 +413,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -433,7 +433,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -461,7 +461,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -489,7 +489,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -509,7 +509,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -529,7 +529,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -550,7 +550,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -570,7 +570,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -598,7 +598,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -626,7 +626,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -646,7 +646,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -666,7 +666,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -687,7 +687,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -707,7 +707,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -735,7 +735,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -763,7 +763,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java index c7dcedc99ca7..729ef7defa59 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -90,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -110,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -131,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -157,7 +157,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -186,7 +186,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -207,7 +207,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 5b88f3fca4ed..6de38b1147e6 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -35,7 +35,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 1cb35cededf6..cacb0750801f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -36,7 +36,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index f920d00e96bd..84aa067c80d0 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -35,7 +35,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 0fad84c07673..afbcf499d332 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -83,7 +83,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -111,7 +111,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -140,7 +140,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -168,7 +168,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -196,7 +196,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -254,7 +254,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 74d5a17eb85f..3ad7d2361f7c 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -45,7 +45,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java index 3806fef8cf2b..4bfc2cfbb4db 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ArrayTest.java @@ -53,7 +53,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -81,7 +81,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -110,7 +110,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java index 756ef3b3af56..ada0edb12a9b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCat.java @@ -76,7 +76,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java index 8c45c9650927..461ed180406a 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -74,7 +74,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java index 8ad670d2cd9a..437e279449e5 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Capitalization.java @@ -48,7 +48,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -68,7 +68,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -88,7 +88,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -108,7 +108,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -128,7 +128,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -148,7 +148,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java index d19e6430c4e5..12ca73636c60 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Cat.java @@ -35,7 +35,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java index 7d22a598ba55..bb4667b4e2cb 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/CatAllOf.java @@ -33,7 +33,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java index f804ea7abe25..84099ff8042b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Category.java @@ -36,7 +36,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -56,7 +56,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java index dfa45fc506a0..f74c32f05c74 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ClassModel.java @@ -34,7 +34,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java index f6c7fd9c70e2..55fa62058c17 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Client.java @@ -33,7 +33,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java index af8adf6bda0e..93c917674106 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Dog.java @@ -35,7 +35,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java index 7400f4dfe07b..025e4d7759b9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/DogAllOf.java @@ -33,7 +33,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java index 03b036a3eade..30fe225638ea 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumArrays.java @@ -112,7 +112,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -140,7 +140,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java index 1d12b2e5bed2..33ea4eacb0f7 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/EnumTest.java @@ -195,7 +195,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -215,7 +215,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -236,7 +236,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -256,7 +256,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -276,7 +276,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java index dd46cc423444..9e9cec096d0b 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -39,7 +39,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -68,7 +68,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java index 4a65147ae666..86d421a9d886 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java @@ -81,7 +81,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -103,7 +103,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -123,7 +123,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -145,7 +145,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -169,7 +169,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -191,7 +191,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -211,7 +211,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -231,7 +231,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -252,7 +252,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -273,7 +273,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -295,7 +295,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -316,7 +316,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -337,7 +337,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -358,7 +358,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 090d40df5b3f..97d1a64a22d5 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -36,7 +36,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -56,7 +56,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java index f1dd7a853b9f..726c8b5fcf0d 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MapTest.java @@ -94,7 +94,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -123,7 +123,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -151,7 +151,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -179,7 +179,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0c8c43fa5ac4..b20b2dec7273 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -47,7 +47,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -68,7 +68,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -97,7 +97,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java index 852061e39c4b..f74c29e604cf 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Model200Response.java @@ -37,7 +37,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -57,7 +57,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java index 80c1e944ad81..01d035fa32d8 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -39,7 +39,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -59,7 +59,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -79,7 +79,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java index cc2b4f37b72b..d17a0da84c8f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ModelReturn.java @@ -34,7 +34,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java index f3ecfc19cafa..c5882dc983a9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Name.java @@ -43,7 +43,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -64,7 +64,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -84,7 +84,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -104,7 +104,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java index 3c46e1dd9c52..fc212048b084 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/NumberOnly.java @@ -34,7 +34,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java index 0cbaa7076cb9..ede10667c9d7 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Order.java @@ -89,7 +89,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -109,7 +109,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -129,7 +129,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -149,7 +149,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -170,7 +170,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -190,7 +190,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java index 6a253d99242e..0e0d3dc1c394 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/OuterComposite.java @@ -40,7 +40,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -61,7 +61,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -81,7 +81,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java index 6f80dc8ff53a..0c6d47b33a4a 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java @@ -95,7 +95,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -115,7 +115,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -136,7 +136,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -162,7 +162,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -191,7 +191,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -212,7 +212,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 439afeea5cab..1ddffebe8f53 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -36,7 +36,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -56,7 +56,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java index 732ba03c5131..32a7f5a8851a 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/SpecialModelName.java @@ -33,7 +33,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java index 61b2497b62c9..96053497912d 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Tag.java @@ -36,7 +36,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -56,7 +56,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java index f3da11ff88a1..91863ff730f2 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -49,7 +49,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -70,7 +70,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -92,7 +92,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -113,7 +113,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -139,7 +139,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java index 32b85b2db0f6..9d2b60593521 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -52,7 +52,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -73,7 +73,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -95,7 +95,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -116,7 +116,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -163,7 +163,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java index 4d5cc446712e..3fa19e61270a 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/User.java @@ -54,7 +54,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -74,7 +74,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -94,7 +94,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -114,7 +114,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -134,7 +134,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -154,7 +154,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -174,7 +174,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -194,7 +194,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java index 2d3a4dfcc814..5d477653f0c2 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/XmlItem.java @@ -129,7 +129,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -149,7 +149,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -170,7 +170,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -190,7 +190,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -218,7 +218,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -238,7 +238,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -258,7 +258,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -279,7 +279,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -299,7 +299,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -327,7 +327,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -355,7 +355,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -375,7 +375,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -395,7 +395,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -416,7 +416,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -436,7 +436,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -464,7 +464,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -492,7 +492,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -512,7 +512,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -532,7 +532,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -553,7 +553,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -573,7 +573,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -601,7 +601,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -629,7 +629,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -649,7 +649,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -669,7 +669,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -690,7 +690,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -710,7 +710,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -738,7 +738,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -766,7 +766,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 99d28975ec64..66ec66896784 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -31,7 +31,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 4f333f454c81..aeb477e916f2 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -32,7 +32,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index ba640d064fc6..4631883198a5 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -31,7 +31,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 167fe710b06f..8b8eaffbe717 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -79,7 +79,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -107,7 +107,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -136,7 +136,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -164,7 +164,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -192,7 +192,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -250,7 +250,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index e61a3d7e3f6f..373e9f19c382 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -41,7 +41,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java index 3e56d5f3461a..209d51c584d3 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ArrayTest.java @@ -49,7 +49,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -77,7 +77,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -106,7 +106,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java index 5d1d494d09df..f0fa16873cb8 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java @@ -71,7 +71,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java index 1a63a9b9b0fb..a296dfc58190 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -69,7 +69,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java index 06b0502d35cc..638fd85562a5 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java @@ -44,7 +44,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -64,7 +64,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -84,7 +84,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -104,7 +104,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -124,7 +124,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -144,7 +144,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java index a5495ddbd94a..f1a6ba0ecd89 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java @@ -31,7 +31,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java index 1f4e2ef26124..166fdfaf7c88 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/CatAllOf.java @@ -29,7 +29,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java index cafa1799f747..3ca433624284 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -32,7 +32,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -52,7 +52,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java index 3fdd6e348c42..314cec6e2053 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java @@ -30,7 +30,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java index 47b131b4f380..1853eeff5f03 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java @@ -29,7 +29,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java index 0935fb8ef985..e1d49d613485 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java @@ -31,7 +31,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java index 7a4ac5521dd3..0249347555d8 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/DogAllOf.java @@ -29,7 +29,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java index 8910b4ab3de8..2c22712b9ce4 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java @@ -106,7 +106,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -134,7 +134,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java index 37673e6f547e..47feac7def26 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java @@ -187,7 +187,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -207,7 +207,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -228,7 +228,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -248,7 +248,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -268,7 +268,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index e3714a6fd2fc..6bb5c5c059ef 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -35,7 +35,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -64,7 +64,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java index 2861129870b6..d7d44db402c7 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java @@ -77,7 +77,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -99,7 +99,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -119,7 +119,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -141,7 +141,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -165,7 +165,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -187,7 +187,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -207,7 +207,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -227,7 +227,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -248,7 +248,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -269,7 +269,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -291,7 +291,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -312,7 +312,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -333,7 +333,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -354,7 +354,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index da7840984684..055eaea62215 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -32,7 +32,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -52,7 +52,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java index 11ef5cad0672..777ec8f061f8 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MapTest.java @@ -89,7 +89,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -118,7 +118,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -146,7 +146,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -174,7 +174,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 119b8c866036..31f0e9691e44 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -43,7 +43,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -93,7 +93,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java index ebd7a9823099..a523a095a0d0 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java @@ -33,7 +33,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -53,7 +53,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 9a3c22f5f0ac..e2c8aca9fccb 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -35,7 +35,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -55,7 +55,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -75,7 +75,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java index d4f16862203a..2887e82ae242 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java @@ -30,7 +30,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java index dfe50ca29389..e90e446667d0 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java @@ -39,7 +39,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -60,7 +60,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -80,7 +80,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -100,7 +100,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java index e233983bce89..e7453ce92624 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java @@ -30,7 +30,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java index 54b586fbf07e..d90339edc7e3 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -84,7 +84,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -104,7 +104,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -124,7 +124,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -144,7 +144,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -165,7 +165,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -185,7 +185,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java index 1e0361ed5519..44d5a9dc16d6 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java @@ -36,7 +36,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -57,7 +57,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -77,7 +77,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java index 425ec458fb3e..2c0efd3d18a6 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -90,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -110,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -131,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -160,7 +160,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -189,7 +189,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -210,7 +210,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index d089c6946ea7..af3367a7ffc1 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -32,7 +32,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -52,7 +52,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java index ad0ad2e672f9..6cde569d9c0b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -29,7 +29,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java index a39aaa7ec68b..219b5ef9b872 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -32,7 +32,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -52,7 +52,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 2d0afd16400b..5ddbf1ebca16 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -45,7 +45,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -66,7 +66,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -88,7 +88,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -109,7 +109,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -138,7 +138,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java index 8a00c61cfcac..ad7786409091 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -48,7 +48,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -69,7 +69,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -91,7 +91,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -112,7 +112,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -133,7 +133,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -162,7 +162,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java index ddd5f9d46278..6e56bc32a2e5 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java @@ -50,7 +50,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -70,7 +70,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -90,7 +90,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -110,7 +110,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -130,7 +130,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -150,7 +150,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -170,7 +170,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -190,7 +190,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java index 88e5d6e8f740..621f973ebaeb 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java @@ -125,7 +125,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -145,7 +145,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -166,7 +166,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -186,7 +186,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -214,7 +214,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -234,7 +234,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -254,7 +254,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -275,7 +275,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -295,7 +295,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -323,7 +323,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -351,7 +351,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -371,7 +371,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -391,7 +391,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -412,7 +412,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -432,7 +432,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -460,7 +460,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -488,7 +488,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -508,7 +508,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -528,7 +528,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -549,7 +549,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -569,7 +569,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -597,7 +597,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -625,7 +625,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -645,7 +645,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -665,7 +665,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -686,7 +686,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -706,7 +706,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -734,7 +734,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -762,7 +762,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java index 0c3fd2d0c222..1835c7bf2114 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java index 2f39d2a48f37..43555f5bfed0 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java index 20bd76aecaa9..7f4aa1ef8b12 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java index 0c3fd2d0c222..1835c7bf2114 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java index 2f39d2a48f37..43555f5bfed0 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java index 20bd76aecaa9..7f4aa1ef8b12 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java index 0c3fd2d0c222..1835c7bf2114 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java index 2f39d2a48f37..43555f5bfed0 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java index 20bd76aecaa9..7f4aa1ef8b12 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java index 0c3fd2d0c222..1835c7bf2114 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java index 2f39d2a48f37..43555f5bfed0 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java index 20bd76aecaa9..7f4aa1ef8b12 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java index 0c3fd2d0c222..1835c7bf2114 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java index 2f39d2a48f37..43555f5bfed0 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java index 20bd76aecaa9..7f4aa1ef8b12 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index dc996c378c27..46281c6456d3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -32,7 +32,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index b48cb85f2156..474278b1b192 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -33,7 +33,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 4f5d053e2af5..c670f89cdfc0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -32,7 +32,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 404b35bad5ab..9f89c16c1bcf 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -80,7 +80,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -108,7 +108,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -137,7 +137,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -165,7 +165,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -193,7 +193,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -251,7 +251,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 4210f652c989..922dc7a56667 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -42,7 +42,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java index 902c8614e445..6937756d45c7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ArrayTest.java @@ -50,7 +50,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -78,7 +78,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -107,7 +107,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java index 6dcfeebd038b..19ab1f8baff0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -45,7 +45,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -65,7 +65,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -85,7 +85,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -105,7 +105,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -125,7 +125,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -145,7 +145,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java index 63918269d52d..ebf9c7cec807 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java @@ -32,7 +32,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java index 85d3a0019ee6..257322699ab9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/CatAllOf.java @@ -30,7 +30,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java index 0f758dc8db20..3c2a6be2b25f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java @@ -33,7 +33,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -53,7 +53,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java index a1bd84395145..4d88c1e45a8e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -31,7 +31,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java index 8b86abab45a8..bb63f835363f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java @@ -30,7 +30,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java index 296bb61c157f..21a27eb4e458 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java @@ -32,7 +32,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java index a4fbf81944b1..09bb08f9458b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/DogAllOf.java @@ -30,7 +30,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java index 428b7b2c854d..14bf9e2c281c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -107,7 +107,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java index c2798f8e2526..3a9a9e85a8c2 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -188,7 +188,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -208,7 +208,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -229,7 +229,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -249,7 +249,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -269,7 +269,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 2b416cc9334a..3d885b7876d4 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -36,7 +36,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -65,7 +65,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java index f7808f9e132b..7f83ebda6cbf 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -78,7 +78,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -100,7 +100,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -120,7 +120,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -142,7 +142,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -166,7 +166,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -188,7 +188,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -208,7 +208,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -228,7 +228,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -249,7 +249,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -270,7 +270,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -292,7 +292,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -313,7 +313,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -334,7 +334,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -355,7 +355,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 450a2b0181a6..a712d19243f9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -33,7 +33,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -53,7 +53,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java index e94ee2b728a6..a4f10eadf355 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MapTest.java @@ -90,7 +90,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -119,7 +119,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -147,7 +147,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -175,7 +175,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 9ab8252d07c7..b6607ec1de22 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -44,7 +44,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -65,7 +65,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -94,7 +94,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java index 01ef71ba2502..8e51dc7b0bf5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -34,7 +34,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -54,7 +54,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index bc236b4da51c..1c50e0984df6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -36,7 +36,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -56,7 +56,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -76,7 +76,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java index 2cdd99e8d772..f71f60f59709 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -31,7 +31,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java index af27cd1af3d1..8336bed2c940 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java @@ -40,7 +40,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -61,7 +61,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -81,7 +81,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -101,7 +101,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java index 862d411fe058..87c0551edfce 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -31,7 +31,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java index 16975d75f3c1..c03246a0acb9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java @@ -85,7 +85,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -105,7 +105,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -125,7 +125,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -145,7 +145,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -166,7 +166,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -186,7 +186,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java index 208120848954..34098a524fc2 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -37,7 +37,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -58,7 +58,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -78,7 +78,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java index 40407b09ad84..8e56b7045abc 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java @@ -89,7 +89,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -109,7 +109,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -130,7 +130,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -156,7 +156,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -185,7 +185,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -206,7 +206,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 423a679b1dde..655154d2cf28 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -33,7 +33,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -53,7 +53,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java index fcf2fdf59ff5..beddd922ad47 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -30,7 +30,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java index 8829ce49833b..c7dba2565eea 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java @@ -33,7 +33,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -53,7 +53,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index 3e7b78bacff8..9dbb6eeeb09d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -46,7 +46,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -67,7 +67,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -89,7 +89,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -110,7 +110,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -136,7 +136,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 3257f982965a..998c11fb3232 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -49,7 +49,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -70,7 +70,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -92,7 +92,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -113,7 +113,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -134,7 +134,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -160,7 +160,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java index 43cff9853463..ac48b7bd3ac7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java @@ -51,7 +51,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -71,7 +71,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -91,7 +91,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -111,7 +111,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -131,7 +131,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -151,7 +151,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -171,7 +171,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -191,7 +191,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java index e789f1ef52e2..fa83623c4bfb 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -126,7 +126,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -146,7 +146,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -167,7 +167,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -187,7 +187,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -215,7 +215,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -235,7 +235,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -255,7 +255,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -276,7 +276,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -296,7 +296,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -324,7 +324,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -352,7 +352,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -372,7 +372,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -392,7 +392,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -413,7 +413,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -433,7 +433,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -461,7 +461,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -489,7 +489,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -509,7 +509,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -529,7 +529,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -550,7 +550,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -570,7 +570,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -598,7 +598,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -626,7 +626,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -646,7 +646,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -666,7 +666,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -687,7 +687,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -707,7 +707,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -735,7 +735,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -763,7 +763,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java index c7dcedc99ca7..729ef7defa59 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java @@ -90,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -110,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -131,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -157,7 +157,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -186,7 +186,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -207,7 +207,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index dc996c378c27..46281c6456d3 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -32,7 +32,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index b48cb85f2156..474278b1b192 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -33,7 +33,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 4f5d053e2af5..c670f89cdfc0 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -32,7 +32,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 404b35bad5ab..9f89c16c1bcf 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -80,7 +80,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -108,7 +108,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -137,7 +137,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -165,7 +165,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -193,7 +193,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -251,7 +251,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 4210f652c989..922dc7a56667 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -42,7 +42,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java index 902c8614e445..6937756d45c7 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ArrayTest.java @@ -50,7 +50,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -78,7 +78,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -107,7 +107,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java index 6dcfeebd038b..19ab1f8baff0 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -45,7 +45,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -65,7 +65,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -85,7 +85,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -105,7 +105,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -125,7 +125,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -145,7 +145,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java index 63918269d52d..ebf9c7cec807 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java @@ -32,7 +32,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java index 85d3a0019ee6..257322699ab9 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/CatAllOf.java @@ -30,7 +30,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java index 0f758dc8db20..3c2a6be2b25f 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java @@ -33,7 +33,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -53,7 +53,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java index a1bd84395145..4d88c1e45a8e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -31,7 +31,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java index 8b86abab45a8..bb63f835363f 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java @@ -30,7 +30,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java index 296bb61c157f..21a27eb4e458 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java @@ -32,7 +32,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java index a4fbf81944b1..09bb08f9458b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/DogAllOf.java @@ -30,7 +30,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java index 428b7b2c854d..14bf9e2c281c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -107,7 +107,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java index c2798f8e2526..3a9a9e85a8c2 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -188,7 +188,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -208,7 +208,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -229,7 +229,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -249,7 +249,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -269,7 +269,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 2b416cc9334a..3d885b7876d4 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -36,7 +36,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -65,7 +65,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java index f7808f9e132b..7f83ebda6cbf 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -78,7 +78,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -100,7 +100,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -120,7 +120,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -142,7 +142,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -166,7 +166,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -188,7 +188,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -208,7 +208,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -228,7 +228,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -249,7 +249,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -270,7 +270,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -292,7 +292,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -313,7 +313,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -334,7 +334,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -355,7 +355,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 450a2b0181a6..a712d19243f9 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -33,7 +33,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -53,7 +53,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java index e94ee2b728a6..a4f10eadf355 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MapTest.java @@ -90,7 +90,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -119,7 +119,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -147,7 +147,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -175,7 +175,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 9ab8252d07c7..b6607ec1de22 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -44,7 +44,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -65,7 +65,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -94,7 +94,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java index 01ef71ba2502..8e51dc7b0bf5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -34,7 +34,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -54,7 +54,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index bc236b4da51c..1c50e0984df6 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -36,7 +36,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -56,7 +56,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -76,7 +76,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java index 2cdd99e8d772..f71f60f59709 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -31,7 +31,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java index af27cd1af3d1..8336bed2c940 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java @@ -40,7 +40,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -61,7 +61,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -81,7 +81,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -101,7 +101,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java index 862d411fe058..87c0551edfce 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -31,7 +31,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java index 16975d75f3c1..c03246a0acb9 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java @@ -85,7 +85,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -105,7 +105,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -125,7 +125,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -145,7 +145,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -166,7 +166,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -186,7 +186,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java index 208120848954..34098a524fc2 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -37,7 +37,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -58,7 +58,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -78,7 +78,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java index 40407b09ad84..8e56b7045abc 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java @@ -89,7 +89,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -109,7 +109,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -130,7 +130,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -156,7 +156,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -185,7 +185,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -206,7 +206,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 423a679b1dde..655154d2cf28 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -33,7 +33,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -53,7 +53,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java index fcf2fdf59ff5..beddd922ad47 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -30,7 +30,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java index 8829ce49833b..c7dba2565eea 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java @@ -33,7 +33,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -53,7 +53,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index 3e7b78bacff8..9dbb6eeeb09d 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -46,7 +46,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -67,7 +67,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -89,7 +89,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -110,7 +110,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -136,7 +136,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 3257f982965a..998c11fb3232 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -49,7 +49,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -70,7 +70,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -92,7 +92,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -113,7 +113,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -134,7 +134,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -160,7 +160,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java index 43cff9853463..ac48b7bd3ac7 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java @@ -51,7 +51,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -71,7 +71,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -91,7 +91,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -111,7 +111,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -131,7 +131,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -151,7 +151,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -171,7 +171,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -191,7 +191,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java index e789f1ef52e2..fa83623c4bfb 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -126,7 +126,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -146,7 +146,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -167,7 +167,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -187,7 +187,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -215,7 +215,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -235,7 +235,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -255,7 +255,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -276,7 +276,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -296,7 +296,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -324,7 +324,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -352,7 +352,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -372,7 +372,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -392,7 +392,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -413,7 +413,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -433,7 +433,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -461,7 +461,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -489,7 +489,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -509,7 +509,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -529,7 +529,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -550,7 +550,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -570,7 +570,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -598,7 +598,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -626,7 +626,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -646,7 +646,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -666,7 +666,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -687,7 +687,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -707,7 +707,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -735,7 +735,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -763,7 +763,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java index c7dcedc99ca7..729ef7defa59 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -90,7 +90,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -110,7 +110,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -131,7 +131,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -157,7 +157,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -186,7 +186,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -207,7 +207,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java index 0c3fd2d0c222..1835c7bf2114 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java index 2f39d2a48f37..43555f5bfed0 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java index 20bd76aecaa9..7f4aa1ef8b12 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java index 45d9d1f034d8..22fa90b899c0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java index 2f1e22d68c72..83acca5c876f 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java index 3ff00ee3b3f6..8d09220b9cbb 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java index 0d61e39fa607..d51807ac9765 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java index f328c5e2428b..e7c79260c172 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java index 5dedef8f4cc4..620e277c3746 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java index f5ad6d997d8c..4ed49f643a6b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java index 85737e2cc9b4..943231933200 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java index 1fa3ac5a2633..d21f7764706b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java index 5e94f1b1a64f..395738af94c2 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java index a33fdfcda719..b0ad30eb11c5 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java index 3d8c2fbf35aa..c626fa4b8cfa 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java index 0e32d5a18084..cef8cd8b90a0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java index 8dea86420bb2..28b2c3b1b5fd 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java index 029709749905..8af075378f7f 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java index 97f94b6a42ee..678e4809263a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java index 3f2f2a67cf30..c2d6663545f4 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java index 298dc30c3567..d27c78376abc 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java index 0050982609ce..7000e76b90dc 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java index fcfecd179b6a..b17cb35148c0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java index b7b482d52879..e74e246e1eeb 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java index 936be9da62c3..1aac4a7b761e 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java index 1a743f9cf9e6..3b7c1d6f066e 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java index 721b20efec44..d6ee65d5da49 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java index 14d6a102d65b..7aa0db2e770b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java index fb014d2ffeb0..beccd82a057a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java index 86f152bdf84b..09c2ff8ded9c 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java index 50883657b0a1..ac7912f6bb3a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java index 78631b8af085..f7053b1ef4c8 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java index a8caa9c61def..654297922e7e 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java index bfb4f2615922..a1fcc8fd5276 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java index 558e77d567ae..0da3f27957b7 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java index 7fd78bb94782..030ff057ae43 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java index 4044f158800d..05f100a5113d 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java index 2c1ada2a85a1..603dceb13698 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java index 85d83cde2869..a8470a066d82 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java index b5862ca99588..8232f1059a48 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java index b1a5c1876a6b..0a23cfea1162 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index cba77034fe13..847d9f37777c 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -33,7 +33,7 @@ public AdditionalPropertiesAnyType name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index cc664246091d..31b7fad0c945 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -34,7 +34,7 @@ public AdditionalPropertiesArray name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 697e93406f93..5c23bc8d768e 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -33,7 +33,7 @@ public AdditionalPropertiesBoolean name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 04361a4f07cd..82d25ab6e747 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -81,7 +81,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapString() { @@ -109,7 +109,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -138,7 +138,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapInteger() { @@ -166,7 +166,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapBoolean() { @@ -194,7 +194,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index a6c485f09f46..f1ced8ef71a0 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -43,7 +43,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java index 2a2f8eb05dff..81c7ab3dd785 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ArrayTest.java @@ -51,7 +51,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayOfString() { @@ -79,7 +79,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -108,7 +108,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java index 0c3fd2d0c222..1835c7bf2114 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public BigCat kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java index 2f39d2a48f37..43555f5bfed0 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatAllOf.java @@ -71,7 +71,7 @@ public BigCatAllOf kind(KindEnum kind) { * Get kind * @return kind */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public KindEnum getKind() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java index 4f3a1535ce78..2ccf1e812e5a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Capitalization.java @@ -46,7 +46,7 @@ public Capitalization smallCamel(String smallCamel) { * Get smallCamel * @return smallCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallCamel() { @@ -66,7 +66,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get capitalCamel * @return capitalCamel */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalCamel() { @@ -86,7 +86,7 @@ public Capitalization smallSnake(String smallSnake) { * Get smallSnake * @return smallSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getSmallSnake() { @@ -106,7 +106,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get capitalSnake * @return capitalSnake */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getCapitalSnake() { @@ -126,7 +126,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getScAETHFlowPoints() { @@ -146,7 +146,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @ApiModelProperty((value = "Name of the pet ") + @ApiModelProperty(value = "Name of the pet ") public String getATTNAME() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java index 3fc8b825b907..0876d9f30a0b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Cat.java @@ -33,7 +33,7 @@ public Cat declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java index bcb0daae003a..d59a3783d0af 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatAllOf.java @@ -31,7 +31,7 @@ public CatAllOf declawed(Boolean declawed) { * Get declawed * @return declawed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getDeclawed() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java index 19d21cb73fc0..ef9a938298b9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java @@ -34,7 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java index 2dabeae8d266..af4c74423128 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModel.java @@ -32,7 +32,7 @@ public ClassModel propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java index f1aa7264affa..298c69c03b17 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Client.java @@ -31,7 +31,7 @@ public Client client(String client) { * Get client * @return client */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getClient() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java index e5aab5cd6dd5..09938cd0f5fc 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public Dog breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java index a391bcbc0e08..d95ac4a329d9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogAllOf.java @@ -31,7 +31,7 @@ public DogAllOf breed(String breed) { * Get breed * @return breed */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBreed() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java index 57f2b4362528..beeff77d9e56 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArrays.java @@ -108,7 +108,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get justSymbol * @return justSymbol */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getArrayEnum() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java index 0ee0e4b4d108..0ce7ab0f2fa6 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumString * @return enumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumStringEnum getEnumString() { @@ -209,7 +209,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumStringRequired * @return enumStringRequired */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -230,7 +230,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumInteger * @return enumInteger */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumIntegerEnum getEnumInteger() { @@ -250,7 +250,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get enumNumber * @return enumNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public EnumNumberEnum getEnumNumber() { @@ -270,7 +270,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 431400ad6c65..ea5aa826feb7 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -37,7 +37,7 @@ public FileSchemaTestClass file(java.io.File file) { * Get file * @return file */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public FileSchemaTestClass addFilesItem(java.io.File filesItem) { * Get files * @return files */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java index 246d14619a3c..352d758ce6e5 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java @@ -79,7 +79,7 @@ public FormatTest integer(Integer integer) { * maximum: 100 * @return integer */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(10) @Max(100) public Integer getInteger() { @@ -101,7 +101,7 @@ public FormatTest int32(Integer int32) { * maximum: 200 * @return int32 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Min(20) @Max(200) public Integer getInt32() { @@ -121,7 +121,7 @@ public FormatTest int64(Long int64) { * Get int64 * @return int64 */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getInt64() { @@ -143,7 +143,7 @@ public FormatTest number(BigDecimal number) { * maximum: 543.2 * @return number */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -167,7 +167,7 @@ public FormatTest _float(Float _float) { * maximum: 987.6 * @return _float */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @@ -189,7 +189,7 @@ public FormatTest _double(Double _double) { * maximum: 123.4 * @return _double */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @@ -209,7 +209,7 @@ public FormatTest string(String string) { * Get string * @return string */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Pattern(regexp = "/[a-z]/i") public String getString() { @@ -229,7 +229,7 @@ public FormatTest _byte(byte[] _byte) { * Get _byte * @return _byte */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -250,7 +250,7 @@ public FormatTest binary(org.springframework.core.io.Resource binary) { * Get binary * @return binary */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -271,7 +271,7 @@ public FormatTest date(LocalDate date) { * Get date * @return date */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -293,7 +293,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid @@ -335,7 +335,7 @@ public FormatTest password(String password) { * Get password * @return password */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Size(min = 10, max = 64) @@ -356,7 +356,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 3b7b93611699..10e514bb1726 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -34,7 +34,7 @@ public HasOnlyReadOnly bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public HasOnlyReadOnly foo(String foo) { * Get foo * @return foo */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getFoo() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java index 9fca01e248e1..36754fec8c9e 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MapTest.java @@ -91,7 +91,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -120,7 +120,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getMapOfEnumString() { @@ -148,7 +148,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getDirectMap() { @@ -176,7 +176,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Map getIndirectMap() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7bd7497c03b..8238e3227a6b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT * Get dateTime * @return dateTime */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java index 1e02396fb664..3f8bdc54450d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200Response.java @@ -35,7 +35,7 @@ public Model200Response name(Integer name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getName() { @@ -55,7 +55,7 @@ public Model200Response propertyClass(String propertyClass) { * Get propertyClass * @return propertyClass */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPropertyClass() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java index 52aebf107b1f..99a06748ac14 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -37,7 +37,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getCode() { @@ -57,7 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getType() { @@ -77,7 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMessage() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java index a0baaf9b8737..d9cc6193aee6 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ModelReturn.java @@ -32,7 +32,7 @@ public ModelReturn _return(Integer _return) { * Get _return * @return _return */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getReturn() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java index d0ad3edf20a5..880351d2843a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Name.java @@ -41,7 +41,7 @@ public Name name(Integer name) { * Get name * @return name */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -62,7 +62,7 @@ public Name snakeCase(Integer snakeCase) { * Get snakeCase * @return snakeCase */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer getSnakeCase() { @@ -82,7 +82,7 @@ public Name property(String property) { * Get property * @return property */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getProperty() { @@ -102,7 +102,7 @@ public Name _123number(Integer _123number) { * Get _123number * @return _123number */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public Integer get123number() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java index 1cc0e9381b79..4af42224ae53 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnly.java @@ -32,7 +32,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java index 0adc72236f00..ba0b3b2e3131 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java @@ -86,7 +86,7 @@ public Order id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -106,7 +106,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getPetId() { @@ -126,7 +126,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Integer getQuantity() { @@ -146,7 +146,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -167,7 +167,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - @ApiModelProperty((value = "Order Status") + @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { @@ -187,7 +187,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getComplete() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java index 733d25bfe5ba..cdac99f37e41 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterComposite.java @@ -38,7 +38,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -59,7 +59,7 @@ public OuterComposite myString(String myString) { * Get myString * @return myString */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getMyString() { @@ -79,7 +79,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Boolean getMyBoolean() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java index 20bd76aecaa9..7f4aa1ef8b12 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public Pet id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -112,7 +112,7 @@ public Pet category(Category category) { * Get category * @return category */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -133,7 +133,7 @@ public Pet name(String name) { * Get name * @return name */ - @ApiModelProperty((example = "doggie", required = true, value = "") + @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull @@ -159,7 +159,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -188,7 +188,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") @Valid @@ -209,7 +209,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - @ApiModelProperty((value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e751c28d1dcc..f872289b8da3 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -34,7 +34,7 @@ public ReadOnlyFirst bar(String bar) { * Get bar * @return bar */ - @ApiModelProperty((readOnly = true, value = "") + @ApiModelProperty(readOnly = true, value = "") public String getBar() { @@ -54,7 +54,7 @@ public ReadOnlyFirst baz(String baz) { * Get baz * @return baz */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getBaz() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java index 2046723eb2c9..31cc434cd51b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelName.java @@ -31,7 +31,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long get$SpecialPropertyName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java index 38b12aab2f81..2d1ac94412f7 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java @@ -34,7 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -54,7 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getName() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java index fd913360a8e2..fb29f038fc6b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -47,7 +47,7 @@ public TypeHolderDefault stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -68,7 +68,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @Valid @@ -90,7 +90,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -111,7 +111,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull @@ -137,7 +137,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java index 736180c3126f..096b4ada0991 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -50,7 +50,7 @@ public TypeHolderExample stringItem(String stringItem) { * Get stringItem * @return stringItem */ - @ApiModelProperty((example = "what", required = true, value = "") + @ApiModelProperty(example = "what", required = true, value = "") @NotNull @@ -71,7 +71,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { * Get numberItem * @return numberItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @Valid @@ -93,7 +93,7 @@ public TypeHolderExample floatItem(Float floatItem) { * Get floatItem * @return floatItem */ - @ApiModelProperty((example = "1.234", required = true, value = "") + @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull @@ -114,7 +114,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem */ - @ApiModelProperty((example = "-2", required = true, value = "") + @ApiModelProperty(example = "-2", required = true, value = "") @NotNull @@ -135,7 +135,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { * Get boolItem * @return boolItem */ - @ApiModelProperty((example = "true", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") @NotNull @@ -161,7 +161,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @ApiModelProperty((example = "[0, 1, 2, 3]", required = true, value = "") + @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java index ed30cddf3ceb..3cadd5d4ec50 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/User.java @@ -52,7 +52,7 @@ public User id(Long id) { * Get id * @return id */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public Long getId() { @@ -72,7 +72,7 @@ public User username(String username) { * Get username * @return username */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getUsername() { @@ -92,7 +92,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getFirstName() { @@ -112,7 +112,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getLastName() { @@ -132,7 +132,7 @@ public User email(String email) { * Get email * @return email */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getEmail() { @@ -152,7 +152,7 @@ public User password(String password) { * Get password * @return password */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPassword() { @@ -172,7 +172,7 @@ public User phone(String phone) { * Get phone * @return phone */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public String getPhone() { @@ -192,7 +192,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - @ApiModelProperty((value = "User Status") + @ApiModelProperty(value = "User Status") public Integer getUserStatus() { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java index 8c06ae383471..62cfbcc6b285 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItem.java @@ -127,7 +127,7 @@ public XmlItem attributeString(String attributeString) { * Get attributeString * @return attributeString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getAttributeString() { @@ -147,7 +147,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { * Get attributeNumber * @return attributeNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -168,7 +168,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getAttributeInteger() { @@ -188,7 +188,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { * Get attributeBoolean * @return attributeBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getAttributeBoolean() { @@ -216,7 +216,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getWrappedArray() { @@ -236,7 +236,7 @@ public XmlItem nameString(String nameString) { * Get nameString * @return nameString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNameString() { @@ -256,7 +256,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -277,7 +277,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNameInteger() { @@ -297,7 +297,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNameBoolean() { @@ -325,7 +325,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameArray() { @@ -353,7 +353,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNameWrappedArray() { @@ -373,7 +373,7 @@ public XmlItem prefixString(String prefixString) { * Get prefixString * @return prefixString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixString() { @@ -393,7 +393,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { * Get prefixNumber * @return prefixNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -414,7 +414,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixInteger() { @@ -434,7 +434,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixBoolean() { @@ -462,7 +462,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixArray() { @@ -490,7 +490,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixWrappedArray() { @@ -510,7 +510,7 @@ public XmlItem namespaceString(String namespaceString) { * Get namespaceString * @return namespaceString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getNamespaceString() { @@ -530,7 +530,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { * Get namespaceNumber * @return namespaceNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -551,7 +551,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getNamespaceInteger() { @@ -571,7 +571,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { * Get namespaceBoolean * @return namespaceBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getNamespaceBoolean() { @@ -599,7 +599,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceArray() { @@ -627,7 +627,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getNamespaceWrappedArray() { @@ -647,7 +647,7 @@ public XmlItem prefixNsString(String prefixNsString) { * Get prefixNsString * @return prefixNsString */ - @ApiModelProperty((example = "string", value = "") + @ApiModelProperty(example = "string", value = "") public String getPrefixNsString() { @@ -667,7 +667,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { * Get prefixNsNumber * @return prefixNsNumber */ - @ApiModelProperty((example = "1.234", value = "") + @ApiModelProperty(example = "1.234", value = "") @Valid @@ -688,7 +688,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger */ - @ApiModelProperty((example = "-2", value = "") + @ApiModelProperty(example = "-2", value = "") public Integer getPrefixNsInteger() { @@ -708,7 +708,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { * Get prefixNsBoolean * @return prefixNsBoolean */ - @ApiModelProperty((example = "true", value = "") + @ApiModelProperty(example = "true", value = "") public Boolean getPrefixNsBoolean() { @@ -736,7 +736,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsArray() { @@ -764,7 +764,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @ApiModelProperty((value = "") + @ApiModelProperty(value = "") public List getPrefixNsWrappedArray() { From dbd76ee4e5244de8fc6afb43e4bb0c1cf11d7538 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Fri, 15 Oct 2021 12:38:25 -0400 Subject: [PATCH 15/21] Update models and documentation --- .../java/org/openapitools/api/PetApi.java | 28 ++--------- .../java/org/openapitools/api/StoreApi.java | 6 +-- .../java/org/openapitools/api/UserApi.java | 48 ++----------------- .../java/org/openapitools/model/Category.java | 1 + .../openapitools/model/ModelApiResponse.java | 1 + .../java/org/openapitools/model/Order.java | 1 + .../main/java/org/openapitools/model/Pet.java | 1 + .../main/java/org/openapitools/model/Tag.java | 1 + .../java/org/openapitools/model/User.java | 1 + 9 files changed, 15 insertions(+), 73 deletions(-) diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index 8b99bfabd13d..62e71e88ed82 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -33,22 +33,16 @@ public interface PetApi { * @return successful operation (status code 200) * or Invalid input (status code 405) */ -<<<<<<< HEAD - @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = { -======= @ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", response = Pet.class, authorizations = { ->>>>>>> master @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { -<<<<<<< HEAD -======= @ApiResponse(code = 200, message = "successful operation", response = Pet.class), ->>>>>>> master + @ApiResponse(code = 405, message = "Invalid input") }) @RequestMapping( method = RequestMethod.POST, @@ -56,11 +50,7 @@ public interface PetApi { produces = "application/json", consumes = "application/json" ) -<<<<<<< HEAD - com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); -======= - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet pet); ->>>>>>> master + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet pet); /** @@ -177,22 +167,16 @@ public interface PetApi { * or Pet not found (status code 404) * or Validation exception (status code 405) */ -<<<<<<< HEAD - @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = { -======= @ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", response = Pet.class, authorizations = { ->>>>>>> master @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @AuthorizationScope(scope = "read:pets", description = "read your pets") }) }, tags={ "pet", }) @ApiResponses(value = { -<<<<<<< HEAD -======= @ApiResponse(code = 200, message = "successful operation", response = Pet.class), ->>>>>>> master + @ApiResponse(code = 400, message = "Invalid ID supplied"), @ApiResponse(code = 404, message = "Pet not found"), @@ -204,11 +188,7 @@ public interface PetApi { produces = "application/json", consumes = "application/json" ) -<<<<<<< HEAD - com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); -======= - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet pet); ->>>>>>> master + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet pet); /** diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 5136f9167ffe..7c94a10b30a1 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -116,10 +116,6 @@ public interface StoreApi { produces = "application/json", consumes = "application/json" ) -<<<<<<< HEAD - com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); -======= - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order order); ->>>>>>> master + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order order); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index 978fa9cda842..20320edb6f7c 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -33,15 +33,11 @@ public interface UserApi { * @param user Created user object (required) * @return successful operation (status code 200) */ -<<<<<<< HEAD - @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", tags={ "user", }) -======= @ApiOperation(value = "Create user", nickname = "createUser", notes = "This can only be done by the logged in user.", authorizations = { @Authorization(value = "api_key") }, tags={ "user", }) ->>>>>>> master @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -50,11 +46,7 @@ public interface UserApi { value = "/user", consumes = "application/json" ) -<<<<<<< HEAD - com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); -======= - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User user); ->>>>>>> master + ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User user); /** @@ -63,15 +55,11 @@ public interface UserApi { * @param user List of user object (required) * @return successful operation (status code 200) */ -<<<<<<< HEAD - @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) -======= @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", authorizations = { @Authorization(value = "api_key") }, tags={ "user", }) ->>>>>>> master @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -80,11 +68,7 @@ public interface UserApi { value = "/user/createWithArray", consumes = "application/json" ) -<<<<<<< HEAD - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); -======= - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List user); ->>>>>>> master + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List user); /** @@ -93,15 +77,11 @@ public interface UserApi { * @param user List of user object (required) * @return successful operation (status code 200) */ -<<<<<<< HEAD - @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) -======= @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", authorizations = { @Authorization(value = "api_key") }, tags={ "user", }) ->>>>>>> master @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -110,11 +90,7 @@ public interface UserApi { value = "/user/createWithList", consumes = "application/json" ) -<<<<<<< HEAD - com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); -======= - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List user); ->>>>>>> master + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List user); /** @@ -125,15 +101,11 @@ public interface UserApi { * @return Invalid username supplied (status code 400) * or User not found (status code 404) */ -<<<<<<< HEAD - @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) -======= @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", authorizations = { @Authorization(value = "api_key") }, tags={ "user", }) ->>>>>>> master @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied"), @@ -199,15 +171,11 @@ public interface UserApi { * * @return successful operation (status code 200) */ -<<<<<<< HEAD - @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", tags={ "user", }) -======= @ApiOperation(value = "Logs out current logged in user session", nickname = "logoutUser", notes = "", authorizations = { @Authorization(value = "api_key") }, tags={ "user", }) ->>>>>>> master @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) @@ -227,15 +195,11 @@ public interface UserApi { * @return Invalid user supplied (status code 400) * or User not found (status code 404) */ -<<<<<<< HEAD - @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", tags={ "user", }) -======= @ApiOperation(value = "Updated user", nickname = "updateUser", notes = "This can only be done by the logged in user.", authorizations = { @Authorization(value = "api_key") }, tags={ "user", }) ->>>>>>> master @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @@ -246,10 +210,6 @@ public interface UserApi { value = "/user/{username}", consumes = "application/json" ) -<<<<<<< HEAD - com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); -======= - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User user); ->>>>>>> master + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User user); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java index 1aba734c4692..26f5a6768a3d 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java @@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java index 0571fe8a3060..ec1b1b81d6a4 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java index 6be72e63e33c..2f24cd46851d 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java @@ -9,6 +9,7 @@ import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java index 333fb7361372..a1f702f1a72f 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java @@ -12,6 +12,7 @@ import org.openapitools.model.Category; import org.openapitools.model.Tag; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java index e00e21acfced..8e3f67322335 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java @@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java index 518401c0b8dc..73fcf01b5375 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java @@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; import javax.validation.Valid; import javax.validation.constraints.*; From c03f8fad4c9cb4b61118101a6a02528fb070809d Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Tue, 19 Oct 2021 12:58:38 -0400 Subject: [PATCH 16/21] Handle boolean property correctly - Use `convertPropertyToBoolean` and `writePropertyBack` --- .../org/openapitools/codegen/languages/SpringCodegen.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index 289307c167fc..40bd8d2a874b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -367,12 +367,14 @@ public void processOpts() { } if (additionalProperties.containsKey(SPRING_CONTROLLER)) { - this.setUseSpringController(Boolean.parseBoolean(additionalProperties.get(SPRING_CONTROLLER).toString())); + this.setUseSpringController(convertPropertyToBoolean(SPRING_CONTROLLER)); } + writePropertyBack(SPRING_CONTROLLER, useSpringController); if (additionalProperties.containsKey(OAS3)) { - this.setOas3(Boolean.parseBoolean(additionalProperties.get(OAS3).toString())); + this.setOas3(convertPropertyToBoolean(OAS3)); } + writePropertyBack(OAS3, oas3); if (additionalProperties.containsKey(RETURN_SUCCESS_CODE)) { this.setReturnSuccessCode(Boolean.parseBoolean(additionalProperties.get(RETURN_SUCCESS_CODE).toString())); From 08c1baeeba117718d0caa223665ab340915b0bed Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Thu, 21 Oct 2021 23:52:45 -0400 Subject: [PATCH 17/21] Fix more @ApiParam usage with @Parameter - Also replace allowableValues with @Scheme(allowableValues = ` --- .../java/org/openapitools/codegen/languages/SpringCodegen.java | 2 +- .../src/main/resources/JavaSpring/bodyParams.mustache | 2 +- .../src/main/resources/JavaSpring/cookieParams.mustache | 2 +- .../src/main/resources/JavaSpring/formParams.mustache | 2 +- .../src/main/resources/JavaSpring/headerParams.mustache | 2 +- .../JavaSpring/libraries/spring-cloud/formParams.mustache | 2 +- .../src/main/resources/JavaSpring/pathParams.mustache | 2 +- .../src/main/resources/JavaSpring/pojo.mustache | 2 +- .../src/main/resources/JavaSpring/queryParams.mustache | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index 40bd8d2a874b..e49c5bf8e400 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -512,7 +512,7 @@ public void processOpts() { additionalProperties.put(RESPONSE_WRAPPER, "Callable"); } - if (!apiFirst && !reactive) { + if (!apiFirst && !reactive && !oas3) { additionalProperties.put("useSpringfox", true); } diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache index 5afbcbb74b0c..7500b53a1bd1 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache @@ -1 +1 @@ -{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues = "{{{.}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}} @Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file +{{#isBodyParam}}{{#oas3}}@Parameter(name ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}} {{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}{{#allowableValues}}, {{#oas3}}schema = @Schema({{/oas3}}allowableValues = "{{{.}}}"{{#oas3}}){{/oas3}}{{/allowableValues}}) {{#useBeanValidation}} @Valid{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/cookieParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/cookieParams.mustache index 18dde87c9883..d6bded4b731a 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/cookieParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/cookieParams.mustache @@ -1 +1 @@ -{{#isCookieParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}@ApiParam(value = "{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaEscapeDoubleQuote}}{{{value}}}{{/lambdaEscapeDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) @CookieValue("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isCookieParam}} \ No newline at end of file +{{#isCookieParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaEscapeDoubleQuote}}{{{value}}}{{/lambdaEscapeDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) @CookieValue("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isCookieParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/formParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/formParams.mustache index 57bd6b555f5e..78df4981339e 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/formParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/formParams.mustache @@ -1 +1 @@ -{{#isFormParam}}{{^isFile}}@ApiParam(value = "{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestPart(value = "{{baseName}}"{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}) {{{dataType}}} {{paramName}}{{/isFile}}{{#isFile}}@ApiParam(value = "{{{description}}}") {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestPart(value = "{{baseName}}"{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}) {{#isArray}}List<{{/isArray}}{{#reactive}}Flux{{/reactive}}{{^reactive}}MultipartFile{{/reactive}}{{#isArray}}>{{/isArray}} {{baseName}}{{/isFile}}{{/isFormParam}} \ No newline at end of file +{{#isFormParam}}{{^isFile}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestPart(value = "{{baseName}}"{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}) {{{dataType}}} {{paramName}}{{/isFile}}{{#isFile}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}") {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestPart(value = "{{baseName}}"{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}) {{#isArray}}List<{{/isArray}}{{#reactive}}Flux{{/reactive}}{{^reactive}}MultipartFile{{/reactive}}{{#isArray}}>{{/isArray}} {{baseName}}{{/isFile}}{{/isFormParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache index 370f038f80c1..4b10916d66d4 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache @@ -1 +1 @@ -{{#isHeaderParam}}{{#oas3}}@Parameter(description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value = "{{baseName}}", required = {{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} \ No newline at end of file +{{#isHeaderParam}}{{#oas3}}@Parameter(description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) @RequestHeader(value = "{{baseName}}", required = {{#required}}true{{/required}}{{^required}}false{{/required}}) {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/formParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/formParams.mustache index 1be37a65d96b..ac337fecf6a8 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/formParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/formParams.mustache @@ -1 +1 @@ -{{#isFormParam}}{{^isFile}}@ApiParam(value = "{{{description}}}"{{#required}}, required=true{{/required}} {{#allowableValues}}, allowableValues="{{{.}}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) @RequestParam(value="{{baseName}}"{{#required}}, required=true{{/required}}{{^required}}, required=false{{/required}}) {{{dataType}}} {{paramName}}{{/isFile}}{{#isFile}}@ApiParam(value = "{{{description}}}") @RequestParam("{{baseName}}") {{#isArray}}List<{{/isArray}}{{#reactive}}Flux{{/reactive}}{{^reactive}}MultipartFile{{/reactive}}{{#isArray}}>{{/isArray}} {{paramName}}{{/isFile}}{{/isFormParam}} \ No newline at end of file +{{#isFormParam}}{{^isFile}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required=true{{/required}} {{#allowableValues}}, allowableValues="{{{.}}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue="{{{.}}}"{{/defaultValue}}{{/isContainer}}) @RequestParam(value="{{baseName}}"{{#required}}, required=true{{/required}}{{^required}}, required=false{{/required}}) {{{dataType}}} {{paramName}}{{/isFile}}{{#isFile}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}") @RequestParam("{{baseName}}") {{#isArray}}List<{{/isArray}}{{#reactive}}Flux{{/reactive}}{{^reactive}}MultipartFile{{/reactive}}{{#isArray}}>{{/isArray}} {{paramName}}{{/isFile}}{{/isFormParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache index 3108af6feb71..cf75bb92edec 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pathParams.mustache @@ -1 +1 @@ -{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{baseName}}", description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaRemoveDoubleQuote}}{{{value}}}{{/lambdaRemoveDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} \ No newline at end of file +{{#isPathParam}}{{#useBeanValidation}}{{>beanValidationPathParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{baseName}}", description ={{/oas3}}{{^oas3}}@ApiParam(value ={{/oas3}} "{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#enumVars}}{{#lambdaRemoveDoubleQuote}}{{{value}}}{{/lambdaRemoveDoubleQuote}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/enumVars}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}) @PathVariable("{{baseName}}") {{>optionalDataType}} {{paramName}}{{/isPathParam}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache index 2ebeeae5df37..a3ebca96ae48 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache @@ -112,7 +112,7 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}}{{^parent}}{{#ha {{#vendorExtensions.x-extra-annotation}} {{{vendorExtensions.x-extra-annotation}}} {{/vendorExtensions.x-extra-annotation}} - {{#oas3}}@Schema({{#name}}name = "{{{name}}}", {{/name}}{{/oas3}}{{^oas3}}@ApiModelProperty({{/oas3}}{{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}") + {{#oas3}}@Schema({{#name}}name = "{{{name}}}", {{/name}}{{/oas3}}{{^oas3}}@ApiModelProperty({{/oas3}}{{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}{{#oas3}}defaultValue = {{/oas3}}{{^oas3}}value = {{/oas3}}"{{{description}}}") {{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{>nullableDataType}} {{getter}}() { return {{name}}; } diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache index 77e79f56ae2e..557b3ca837a8 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache @@ -1 +1 @@ -{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}){{#useBeanValidation}} @Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} \ No newline at end of file +{{#isQueryParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{#oas3}}@Parameter(name = "{{{baseName}}}", description = {{/oas3}}{{^oas3}}@ApiParam(value = {{/oas3}}"{{{description}}}"{{#required}}, required = true{{/required}}{{#allowableValues}}, {{#oas3}}schema = @Schema({{/oas3}}allowableValues = "{{#values}}{{{.}}}{{^-last}}, {{/-last}}{{#-last}}{{/-last}}{{/values}}"{{#oas3}}){{/oas3}}{{/allowableValues}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}){{#useBeanValidation}} @Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{^isContainer}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}{{/isContainer}}){{/isModel}}{{#isDate}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE){{/isDate}}{{#isDateTime}} @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME){{/isDateTime}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} \ No newline at end of file From 290dcad7f4dd95147cc22b0b327b5b3c5875609a Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Fri, 22 Oct 2021 00:03:06 -0400 Subject: [PATCH 18/21] Update samples --- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/TestHeadersApi.java | 14 +- .../openapitools/api/TestQueryParamsApi.java | 14 +- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../api/AnotherFakeApiController.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../openapitools/api/FakeApiController.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../api/FakeClassnameTestApiController.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../openapitools/api/PetApiController.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../openapitools/api/StoreApiController.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../openapitools/api/UserApiController.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 118 +++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 40 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../api/AnotherFakeApiController.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../openapitools/api/FakeApiController.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../api/FakeClassnameTestApiController.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../openapitools/api/PetApiController.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../openapitools/api/StoreApiController.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../openapitools/api/UserApiController.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../api/AnotherFakeApiController.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../openapitools/api/FakeApiController.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../api/FakeClassnameTestApiController.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../openapitools/api/PetApiController.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../openapitools/api/StoreApiController.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../openapitools/api/UserApiController.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- .../virtualan/api/AnotherFakeApi.java | 4 +- .../openapitools/virtualan/api/FakeApi.java | 126 +++++++++++++++--- .../virtualan/api/FakeClassnameTestApi.java | 4 +- .../openapitools/virtualan/api/PetApi.java | 42 ++++-- .../openapitools/virtualan/api/StoreApi.java | 12 +- .../openapitools/virtualan/api/UserApi.java | 32 ++++- .../org/openapitools/api/AnotherFakeApi.java | 4 +- .../java/org/openapitools/api/FakeApi.java | 126 +++++++++++++++--- .../api/FakeClassnameTestApi.java | 4 +- .../java/org/openapitools/api/PetApi.java | 42 ++++-- .../java/org/openapitools/api/StoreApi.java | 12 +- .../java/org/openapitools/api/UserApi.java | 32 ++++- 140 files changed, 4173 insertions(+), 809 deletions(-) diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java index 103c961f548b..880ad5c31cdd 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java @@ -47,7 +47,9 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + CompletableFuture> addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -70,7 +72,11 @@ public interface PetApi { method = RequestMethod.DELETE, value = "/pet/{petId}" ) - CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey); + CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +); /** @@ -97,7 +103,9 @@ public interface PetApi { value = "/pet/findByStatus", produces = "application/json" ) - CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +); /** @@ -125,7 +133,9 @@ public interface PetApi { value = "/pet/findByTags", produces = "application/json" ) - CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); + CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +); /** @@ -154,7 +164,9 @@ public interface PetApi { value = "/pet/{petId}", produces = "application/json" ) - CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId); + CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +); /** @@ -183,7 +195,9 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + CompletableFuture> updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -208,7 +222,13 @@ public interface PetApi { value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -234,6 +254,12 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java index 85acb4cc90c8..177822dd091c 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java @@ -46,7 +46,9 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId); + CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId + +); /** @@ -94,7 +96,9 @@ public interface StoreApi { value = "/store/order/{orderId}", produces = "application/json" ) - CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId); + CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId + +); /** @@ -116,6 +120,8 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); + CompletableFuture> placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java index 1f2a8e44dd91..ce7e8fefbe4b 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java @@ -43,7 +43,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - CompletableFuture> createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); + CompletableFuture> createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -61,7 +63,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + CompletableFuture> createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -79,7 +83,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + CompletableFuture> createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -101,7 +107,9 @@ public interface UserApi { method = RequestMethod.DELETE, value = "/user/{username}" ) - CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username); + CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +); /** @@ -126,7 +134,9 @@ public interface UserApi { value = "/user/{username}", produces = "application/json" ) - CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username); + CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +); /** @@ -149,7 +159,11 @@ public interface UserApi { value = "/user/login", produces = "application/json" ) - CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +); /** @@ -189,6 +203,10 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); + CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index e9ce789c2318..9f7bc548c5f1 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -46,7 +46,9 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -69,7 +71,11 @@ public interface PetApi { method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +); /** @@ -96,7 +102,9 @@ public interface PetApi { value = "/pet/findByStatus", produces = "application/json" ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -124,7 +132,9 @@ public interface PetApi { value = "/pet/findByTags", produces = "application/json" ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -153,7 +163,9 @@ public interface PetApi { value = "/pet/{petId}", produces = "application/json" ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +); /** @@ -182,7 +194,9 @@ public interface PetApi { value = "/pet", consumes = "application/json" ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -207,7 +221,13 @@ public interface PetApi { value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -233,6 +253,12 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 020710438f38..d5318da2e9dc 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -45,7 +45,9 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId + +); /** @@ -93,7 +95,9 @@ public interface StoreApi { value = "/store/order/{orderId}", produces = "application/json" ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId + +); /** @@ -115,6 +119,8 @@ public interface StoreApi { value = "/store/order", produces = "application/json" ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 2d2bd1ee075d..2c1211564ed8 100644 --- a/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); + ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -60,7 +62,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -78,7 +82,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -100,7 +106,9 @@ public interface UserApi { method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +); /** @@ -125,7 +133,9 @@ public interface UserApi { value = "/user/{username}", produces = "application/json" ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +); /** @@ -148,7 +158,11 @@ public interface UserApi { value = "/user/login", produces = "application/json" ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +); /** @@ -205,6 +219,10 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index 62e71e88ed82..c1d0247e2859 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -50,7 +50,9 @@ public interface PetApi { produces = "application/json", consumes = "application/json" ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet pet); + ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet pet); /** @@ -73,7 +75,11 @@ public interface PetApi { method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +); /** @@ -99,7 +105,9 @@ public interface PetApi { value = "/pet/findByStatus", produces = "application/json" ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +); /** @@ -126,7 +134,9 @@ public interface PetApi { value = "/pet/findByTags", produces = "application/json" ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +); /** @@ -155,7 +165,9 @@ public interface PetApi { value = "/pet/{petId}", produces = "application/json" ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +); /** @@ -188,7 +200,9 @@ public interface PetApi { produces = "application/json", consumes = "application/json" ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet pet); + ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet pet); /** @@ -213,7 +227,13 @@ public interface PetApi { value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet" ) @RequestParam(value="name", required=false) String name, + +@ApiParam(value = "Updated status of the pet" ) @RequestParam(value="status", required=false) String status); /** @@ -239,6 +259,12 @@ public interface PetApi { produces = "application/json", consumes = "multipart/form-data" ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server" ) @RequestParam(value="additionalMetadata", required=false) String additionalMetadata, + +@ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 7c94a10b30a1..3a2b0d0f006e 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -45,7 +45,9 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId + +); /** @@ -93,7 +95,9 @@ public interface StoreApi { value = "/store/order/{orderId}", produces = "application/json" ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId + +); /** @@ -116,6 +120,8 @@ public interface StoreApi { produces = "application/json", consumes = "application/json" ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order order); + ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order order); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index 20320edb6f7c..9b376ee01ad0 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ public interface UserApi { value = "/user", consumes = "application/json" ) - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User user); + ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User user); /** @@ -68,7 +70,9 @@ public interface UserApi { value = "/user/createWithArray", consumes = "application/json" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List user); + ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List user); /** @@ -90,7 +94,9 @@ public interface UserApi { value = "/user/createWithList", consumes = "application/json" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List user); + ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List user); /** @@ -115,7 +121,9 @@ public interface UserApi { method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +); /** @@ -140,7 +148,9 @@ public interface UserApi { value = "/user/{username}", produces = "application/json" ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +); /** @@ -163,7 +173,11 @@ public interface UserApi { value = "/user/login", produces = "application/json" ) - ResponseEntity loginUser(@NotNull @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +); /** @@ -210,6 +224,10 @@ public interface UserApi { value = "/user/{username}", consumes = "application/json" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User user); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User user); } diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java index 911872b69728..11ad4fd312b1 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { value = "/pet", consumes = "application/json" ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -76,7 +78,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -106,7 +112,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = "application/json" ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -151,7 +159,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = "application/json" ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -197,7 +207,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = "application/json" ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -243,7 +255,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = "application/json" ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -271,7 +285,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = "application/x-www-form-urlencoded" ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -300,7 +320,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = "application/json", consumes = "multipart/form-data" ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java index 65d8cdd72ec0..830b4c835af2 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{orderId}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,7 +105,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{orderId}", produces = "application/json" ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -142,7 +146,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = "application/json" ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java index ebba62883d7a..16e38aed8678 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +69,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +92,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +149,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = "application/json" ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,7 +191,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = "application/json" ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +241,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java index 70a4b282e929..f8631b5a5706 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestHeadersApi.java @@ -52,7 +52,19 @@ default Optional getRequest() { value = "/test-headers", produces = { "application/json" } ) - default ResponseEntity headersTest(@ApiParam(value = "", defaultValue = "11.2") @RequestHeader(value = "headerNumber", required = false) BigDecimal headerNumber,@ApiParam(value = "", defaultValue = "qwerty") @RequestHeader(value = "headerString", required = false) String headerString,@ApiParam(value = "", defaultValue = "qwerty") @RequestHeader(value = "headerStringWrapped", required = false) String headerStringWrapped,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @RequestHeader(value = "headerStringQuotes", required = false) String headerStringQuotes,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @RequestHeader(value = "headerStringQuotesWrapped", required = false) String headerStringQuotesWrapped,@ApiParam(value = "", defaultValue = "true") @RequestHeader(value = "headerBoolean", required = false) Boolean headerBoolean) { + default ResponseEntity headersTest( +@ApiParam(value = "", defaultValue = "11.2") @RequestHeader(value = "headerNumber", required = false) BigDecimal headerNumber +, +@ApiParam(value = "", defaultValue = "qwerty") @RequestHeader(value = "headerString", required = false) String headerString +, +@ApiParam(value = "", defaultValue = "qwerty") @RequestHeader(value = "headerStringWrapped", required = false) String headerStringWrapped +, +@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @RequestHeader(value = "headerStringQuotes", required = false) String headerStringQuotes +, +@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @RequestHeader(value = "headerStringQuotesWrapped", required = false) String headerStringQuotesWrapped +, +@ApiParam(value = "", defaultValue = "true") @RequestHeader(value = "headerBoolean", required = false) Boolean headerBoolean +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java index 02afb4f53291..a608934824b1 100644 --- a/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java +++ b/samples/server/petstore/spring-mvc-default-value/src/main/java/org/openapitools/api/TestQueryParamsApi.java @@ -52,7 +52,19 @@ default Optional getRequest() { value = "/test-query-params", produces = { "application/json" } ) - default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue = "11.2") BigDecimal queryNumber,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue = "qwerty") String queryString,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue = "qwerty") String queryStringWrapped,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue = "qwerty\"with quotes\" test") String queryStringQuotes,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue = "qwerty\"with quotes\" test") String queryStringQuotesWrapped,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue = "true") Boolean queryBoolean) { + default ResponseEntity queryParamsTest(@ApiParam(value = "", defaultValue = "11.2") @Valid @RequestParam(value = "queryNumber", required = false, defaultValue = "11.2") BigDecimal queryNumber + +,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryString", required = false, defaultValue = "qwerty") String queryString + +,@ApiParam(value = "", defaultValue = "qwerty") @Valid @RequestParam(value = "queryStringWrapped", required = false, defaultValue = "qwerty") String queryStringWrapped + +,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotes", required = false, defaultValue = "qwerty\"with quotes\" test") String queryStringQuotes + +,@ApiParam(value = "", defaultValue = "qwerty\"with quotes\" test") @Valid @RequestParam(value = "queryStringQuotesWrapped", required = false, defaultValue = "qwerty\"with quotes\" test") String queryStringQuotesWrapped + +,@ApiParam(value = "", defaultValue = "true") @Valid @RequestParam(value = "queryBoolean", required = false, defaultValue = "true") Boolean queryBoolean + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java index 477c68f674cc..f24d2cbee9c2 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -48,7 +48,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default CompletableFuture> call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java index 1826ad2fb3a3..de1c276fc58d 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java @@ -56,7 +56,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default CompletableFuture> createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default CompletableFuture> createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -79,7 +81,9 @@ default CompletableFuture> createXmlItem(@ApiParam(value = value = "/fake/outer/boolean", produces = { "*/*" } ) - default CompletableFuture> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default CompletableFuture> fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -102,7 +106,9 @@ default CompletableFuture> fakeOuterBooleanSerialize(@Ap value = "/fake/outer/composite", produces = { "*/*" } ) - default CompletableFuture> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default CompletableFuture> fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -136,7 +142,9 @@ default CompletableFuture> fakeOuterCompositeSeri value = "/fake/outer/number", produces = { "*/*" } ) - default CompletableFuture> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default CompletableFuture> fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -159,7 +167,9 @@ default CompletableFuture> fakeOuterNumberSerialize(@ value = "/fake/outer/string", produces = { "*/*" } ) - default CompletableFuture> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default CompletableFuture> fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -182,7 +192,9 @@ default CompletableFuture> fakeOuterStringSerialize(@ApiP value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default CompletableFuture> testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -205,7 +217,11 @@ default CompletableFuture> testBodyWithFileSchema(@ApiParam value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -229,7 +245,9 @@ default CompletableFuture> testBodyWithQueryParams(@NotNull produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default CompletableFuture> testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -282,7 +300,35 @@ default CompletableFuture> testClientModel(@ApiParam(valu value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default CompletableFuture> testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -315,7 +361,23 @@ default CompletableFuture> testEndpointParameters(@ApiParam value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default CompletableFuture> testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -342,7 +404,19 @@ default CompletableFuture> testEnumParameters(@ApiParam(val method = RequestMethod.DELETE, value = "/fake" ) - default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default CompletableFuture> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -364,7 +438,9 @@ default CompletableFuture> testGroupParameters(@NotNull @Ap value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default CompletableFuture> testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default CompletableFuture> testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -387,7 +463,11 @@ default CompletableFuture> testInlineAdditionalProperties(@ value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default CompletableFuture> testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -413,7 +493,17 @@ default CompletableFuture> testJsonFormData(@ApiParam(value method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -442,7 +532,13 @@ default CompletableFuture> testQueryParameterCollectionForm produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default CompletableFuture> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 2328c3dd8098..5b8c16564b78 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -51,7 +51,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default CompletableFuture> testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default CompletableFuture> testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java index edbacf143e6e..d0197563556a 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java @@ -55,7 +55,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default CompletableFuture> addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -84,7 +86,11 @@ default CompletableFuture> addPet(@ApiParam(value = "Pet ob method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default CompletableFuture> deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -114,7 +120,9 @@ default CompletableFuture> deletePet(@ApiParam(value = "Pet value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default CompletableFuture>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -161,7 +169,9 @@ default CompletableFuture>> findPetsByStatus(@NotNull @ value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default CompletableFuture>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -209,7 +219,9 @@ default CompletableFuture>> findPetsByTags(@NotNull @Api value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default CompletableFuture> getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -260,7 +272,9 @@ default CompletableFuture> getPetById(@ApiParam(value = "ID value = "/pet", consumes = { "application/json", "application/xml" } ) - default CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default CompletableFuture> updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -288,7 +302,13 @@ default CompletableFuture> updatePet(@ApiParam(value = "Pet value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default CompletableFuture> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -317,7 +337,13 @@ default CompletableFuture> updatePetWithForm(@ApiParam(valu produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default CompletableFuture> uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java index c0c73941bd3d..8bef4fb81753 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default CompletableFuture> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -104,7 +106,9 @@ default CompletableFuture>> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default CompletableFuture> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -145,7 +149,9 @@ default CompletableFuture> getOrderById(@Min(1L) @Max(5L) value = "/store/order", produces = { "application/xml", "application/json" } ) - default CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default CompletableFuture> placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java index 8348637545f7..f3cdb950859c 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java @@ -47,7 +47,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default CompletableFuture> createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default CompletableFuture> createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -68,7 +70,9 @@ default CompletableFuture> createUser(@ApiParam(value = "Cr method = RequestMethod.POST, value = "/user/createWithArray" ) - default CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default CompletableFuture> createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -89,7 +93,9 @@ default CompletableFuture> createUsersWithArrayInput(@ApiPa method = RequestMethod.POST, value = "/user/createWithList" ) - default CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default CompletableFuture> createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -114,7 +120,9 @@ default CompletableFuture> createUsersWithListInput(@ApiPar method = RequestMethod.DELETE, value = "/user/{username}" ) - default CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default CompletableFuture> deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -142,7 +150,9 @@ default CompletableFuture> deleteUser(@ApiParam(value = "Th value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default CompletableFuture> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -184,7 +194,11 @@ default CompletableFuture> getUserByName(@ApiParam(value = value = "/user/login", produces = { "application/xml", "application/json" } ) - default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default CompletableFuture> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -230,7 +244,11 @@ default CompletableFuture> logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1605c39b917a..dd22dd3b90b0 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java index 9c0f235798cf..8aa03239cbb7 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +80,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +105,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +139,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +164,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +189,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +214,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +242,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,7 +295,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) LocalDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +356,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,7 +399,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,7 +433,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -382,7 +458,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -408,7 +488,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -437,7 +527,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index be7512ba6d60..d8865b8e2f64 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java index 05cb0990dfe1..bbb099e4d5d8 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,7 +85,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -158,7 +166,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -204,7 +214,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -253,7 +265,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -281,7 +295,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +330,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java index dff51097cc07..db448a312289 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,7 +105,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -142,7 +146,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java index d7a5431561a9..7507229606c7 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +69,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +92,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +149,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,7 +191,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +241,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1605c39b917a..dd22dd3b90b0 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 143b87377047..671cce0c9097 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +80,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +105,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +139,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +164,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +189,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +214,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +242,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,7 +295,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +356,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,7 +399,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,7 +433,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -382,7 +458,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -408,7 +488,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -437,7 +527,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index be7512ba6d60..d8865b8e2f64 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java index 05cb0990dfe1..bbb099e4d5d8 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,7 +85,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -158,7 +166,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -204,7 +214,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -253,7 +265,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -281,7 +295,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +330,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index dff51097cc07..db448a312289 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,7 +105,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -142,7 +146,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java index d7a5431561a9..7507229606c7 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +69,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +92,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +149,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,7 +191,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +241,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1605c39b917a..dd22dd3b90b0 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index 5f85cf9dc454..ec7adbe66310 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +80,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +105,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +139,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +164,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +189,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +214,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +242,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,7 +295,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +356,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,7 +399,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,7 +433,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -382,7 +458,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -408,7 +488,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -437,7 +527,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index be7512ba6d60..d8865b8e2f64 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 7ca2b0f26f2e..d805b96deecf 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -53,7 +53,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,7 +84,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -112,7 +118,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -157,7 +165,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -203,7 +213,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -252,7 +264,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -280,7 +294,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -309,7 +329,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index dff51097cc07..db448a312289 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,7 +105,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -142,7 +146,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index d7a5431561a9..7507229606c7 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +69,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +92,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +149,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,7 +191,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +241,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1605c39b917a..dd22dd3b90b0 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java index 143b87377047..671cce0c9097 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +80,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +105,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +139,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +164,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +189,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +214,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +242,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,7 +295,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +356,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,7 +399,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,7 +433,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -382,7 +458,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -408,7 +488,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -437,7 +527,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index be7512ba6d60..d8865b8e2f64 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java index 05cb0990dfe1..bbb099e4d5d8 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,7 +85,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -158,7 +166,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -204,7 +214,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -253,7 +265,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -281,7 +295,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +330,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java index dff51097cc07..db448a312289 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,7 +105,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -142,7 +146,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java index d7a5431561a9..7507229606c7 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +69,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +92,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +149,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,7 +191,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +241,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0e00ef82101a..a3b6622bdf8e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -39,6 +39,8 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 7e7db5c514d2..ec32cf448bff 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -40,7 +40,9 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 77142bcb6658..f59c7b20d037 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -47,7 +47,9 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -67,7 +69,9 @@ public interface FakeApi { value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -87,7 +91,9 @@ public interface FakeApi { value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -107,7 +113,9 @@ public interface FakeApi { value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -127,7 +135,9 @@ public interface FakeApi { value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -147,7 +157,9 @@ public interface FakeApi { value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -167,7 +179,11 @@ public interface FakeApi { value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body); /** @@ -188,7 +204,9 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); + ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); /** @@ -227,7 +245,35 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -257,7 +303,23 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -281,7 +343,19 @@ public interface FakeApi { method = RequestMethod.DELETE, value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +); /** @@ -300,7 +374,9 @@ public interface FakeApi { value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param); /** @@ -320,7 +396,11 @@ public interface FakeApi { value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -343,7 +423,17 @@ public interface FakeApi { method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +); /** @@ -369,6 +459,12 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java index 9ee9d11cb9c0..227840431fb3 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java @@ -49,7 +49,9 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -62,7 +64,9 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -75,7 +79,9 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -95,7 +101,9 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,7 +116,9 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -121,7 +131,9 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -134,7 +146,11 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -147,7 +163,9 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -181,7 +199,35 @@ public ResponseEntity testClientModel(@ApiParam(value = "client model", * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +248,23 @@ public ResponseEntity testEndpointParameters(@ApiParam(value = "None", req * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -220,7 +282,19 @@ public ResponseEntity testEnumParameters(@ApiParam(value = "Header paramet * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -232,7 +306,9 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -245,7 +321,11 @@ public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "re * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -262,7 +342,17 @@ public ResponseEntity testJsonFormData(@ApiParam(value = "field1", require * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -276,7 +366,13 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 9b39401fe1a4..bd2221e52764 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -42,6 +42,8 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); + ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 4b7f7b72e8aa..80e92bdeaf15 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -40,7 +40,9 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + public ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java index f2b3c76aa707..b84a93fa4291 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -46,7 +46,9 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -72,7 +74,11 @@ public interface PetApi { method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +); /** @@ -99,7 +105,9 @@ public interface PetApi { value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +); /** @@ -127,7 +135,9 @@ public interface PetApi { value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +); /** @@ -156,7 +166,9 @@ public interface PetApi { value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +); /** @@ -188,7 +200,9 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -213,7 +227,13 @@ public interface PetApi { value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -239,6 +259,12 @@ public interface PetApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java index 39a56f05d297..4905ee8920bd 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApiController.java @@ -42,7 +42,9 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + public ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,7 +58,11 @@ public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to b * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -70,7 +76,9 @@ public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", requ * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -97,7 +105,9 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -124,7 +134,9 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -151,7 +163,9 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", r * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -165,7 +179,13 @@ public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs t * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +199,13 @@ public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index 8ace2d21dfc4..6238e1486c97 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -41,7 +41,9 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +); /** @@ -89,7 +91,9 @@ public interface StoreApi { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +); /** @@ -111,6 +115,8 @@ public interface StoreApi { value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java index 3b1ec152fe18..392213709825 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApiController.java @@ -42,7 +42,9 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -69,7 +71,9 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -94,7 +98,9 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 01a7d1b39fad..b1c1398c13ff 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -38,7 +38,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); + ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -56,7 +58,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -74,7 +78,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -96,7 +102,9 @@ public interface UserApi { method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +); /** @@ -121,7 +129,9 @@ public interface UserApi { value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +); /** @@ -144,7 +154,11 @@ public interface UserApi { value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +); /** @@ -184,6 +198,10 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java index 4cb76612c3e8..a749387b89f1 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApiController.java @@ -41,7 +41,9 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + public ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -53,7 +55,9 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object", * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,7 +69,9 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,7 +85,9 @@ public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,7 +101,9 @@ public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -119,7 +129,11 @@ public ResponseEntity getUserByName(@ApiParam(value = "The name that needs * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,7 +159,11 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1605c39b917a..dd22dd3b90b0 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index 143b87377047..671cce0c9097 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +80,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +105,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +139,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +164,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +189,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +214,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +242,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,7 +295,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +356,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,7 +399,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,7 +433,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -382,7 +458,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -408,7 +488,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -437,7 +527,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index be7512ba6d60..d8865b8e2f64 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java index 05cb0990dfe1..bbb099e4d5d8 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,7 +85,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -158,7 +166,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -204,7 +214,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -253,7 +265,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -281,7 +295,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +330,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java index dff51097cc07..db448a312289 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,7 +105,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -142,7 +146,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java index d7a5431561a9..7507229606c7 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +69,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +92,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +149,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,7 +191,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +241,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index c965be6ec797..e82766bb0d3b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -43,7 +43,9 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index 68894880cc49..238164807450 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,9 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -73,7 +75,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -95,7 +99,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -117,7 +123,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -139,7 +147,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -161,7 +171,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -183,7 +195,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -206,7 +222,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -247,7 +265,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -279,7 +325,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -305,7 +367,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -326,7 +400,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } @@ -348,7 +424,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -373,7 +453,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -401,7 +491,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 232f7156941f..d3ad75ed3ccf 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -46,7 +46,9 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java index cc3d744a9a2c..e01e372215b2 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java @@ -50,7 +50,9 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -78,7 +80,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return getDelegate().deletePet(petId, apiKey); } @@ -107,7 +113,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { return getDelegate().findPetsByStatus(status); } @@ -137,7 +145,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { return getDelegate().findPetsByTags(tags); } @@ -168,7 +178,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { return getDelegate().getPetById(petId); } @@ -202,7 +214,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } @@ -229,7 +243,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -257,7 +277,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java index aae41fd2fd50..dd3ae9db1c1d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -45,7 +45,9 @@ default StoreApiDelegate getDelegate() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return getDelegate().deleteOrder(orderId); } @@ -97,7 +99,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { return getDelegate().getOrderById(orderId); } @@ -121,7 +125,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java index 2836b8971f42..3834fa3104b1 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,9 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -62,7 +64,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -82,7 +86,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -106,7 +112,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return getDelegate().deleteUser(username); } @@ -133,7 +141,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { return getDelegate().getUserByName(username); } @@ -158,7 +168,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return getDelegate().loginUser(username, password); } @@ -202,7 +216,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java index c965be6ec797..e82766bb0d3b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -43,7 +43,9 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index 68894880cc49..238164807450 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,9 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -73,7 +75,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -95,7 +99,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -117,7 +123,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -139,7 +147,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -161,7 +171,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -183,7 +195,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -206,7 +222,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -247,7 +265,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -279,7 +325,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -305,7 +367,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -326,7 +400,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } @@ -348,7 +424,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -373,7 +453,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -401,7 +491,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 232f7156941f..d3ad75ed3ccf 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -46,7 +46,9 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java index cc3d744a9a2c..e01e372215b2 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java @@ -50,7 +50,9 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -78,7 +80,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return getDelegate().deletePet(petId, apiKey); } @@ -107,7 +113,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { return getDelegate().findPetsByStatus(status); } @@ -137,7 +145,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { return getDelegate().findPetsByTags(tags); } @@ -168,7 +178,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { return getDelegate().getPetById(petId); } @@ -202,7 +214,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } @@ -229,7 +243,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -257,7 +277,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java index aae41fd2fd50..dd3ae9db1c1d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java @@ -45,7 +45,9 @@ default StoreApiDelegate getDelegate() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return getDelegate().deleteOrder(orderId); } @@ -97,7 +99,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { return getDelegate().getOrderById(orderId); } @@ -121,7 +125,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java index 2836b8971f42..3834fa3104b1 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,9 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -62,7 +64,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -82,7 +86,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -106,7 +112,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return getDelegate().deleteUser(username); } @@ -133,7 +141,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { return getDelegate().getUserByName(username); } @@ -158,7 +168,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return getDelegate().loginUser(username, password); } @@ -202,7 +216,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java index 9fb46d278d55..dfe922857cd6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index dd62452ee179..d59cda69a5a3 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -57,7 +57,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,7 +84,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -107,7 +111,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -141,7 +147,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -166,7 +174,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -191,7 +201,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -216,7 +228,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -242,7 +258,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -295,7 +313,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -330,7 +376,19 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters(@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,7 +417,15 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Query paramet method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -383,7 +449,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -408,7 +476,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -436,7 +508,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -467,7 +549,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index e6bf500d80c0..382830b3bd32 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -52,7 +52,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java index acf479468f18..e3f65fd1fe7c 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java @@ -56,7 +56,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -87,7 +89,9 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -119,7 +123,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -166,7 +172,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -214,7 +222,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -265,7 +275,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -295,7 +307,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -326,7 +344,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java index de5e4eae3ad7..40fe5c91f150 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java @@ -51,7 +51,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -109,7 +111,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -150,7 +154,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java index e54b7ea67f2d..06cbdf48bb55 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java @@ -48,7 +48,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -71,7 +73,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,7 +98,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -121,7 +127,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -151,7 +159,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -193,7 +203,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -243,7 +257,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java index 5d8ddb910166..8918cd4bbf7d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,9 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().call123testSpecialTags(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index afa5e5e0ff3b..8d3cd2f941fc 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,9 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default Mono> createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody Mono xmlItem, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody Mono xmlItem, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().createXmlItem(xmlItem, exchange); } @@ -77,7 +79,9 @@ default Mono> createXmlItem(@ApiParam(value = "XmlItem Body value = "/fake/outer/boolean", produces = { "*/*" } ) - default Mono> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterBooleanSerialize(body, exchange); } @@ -99,7 +103,9 @@ default Mono> fakeOuterBooleanSerialize(@ApiParam(value value = "/fake/outer/composite", produces = { "*/*" } ) - default Mono> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterCompositeSerialize(body, exchange); } @@ -121,7 +127,9 @@ default Mono> fakeOuterCompositeSerialize(@ApiPar value = "/fake/outer/number", produces = { "*/*" } ) - default Mono> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterNumberSerialize(body, exchange); } @@ -143,7 +151,9 @@ default Mono> fakeOuterNumberSerialize(@ApiParam(valu value = "/fake/outer/string", produces = { "*/*" } ) - default Mono> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().fakeOuterStringSerialize(body, exchange); } @@ -165,7 +175,9 @@ default Mono> fakeOuterStringSerialize(@ApiParam(value = value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default Mono> testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithFileSchema(body, exchange); } @@ -187,7 +199,11 @@ default Mono> testBodyWithFileSchema(@ApiParam(value = "", value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testBodyWithQueryParams(query, body, exchange); } @@ -210,7 +226,9 @@ default Mono> testBodyWithQueryParams(@NotNull @ApiParam(va produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClientModel(body, exchange); } @@ -251,7 +269,35 @@ default Mono> testClientModel(@ApiParam(value = "client m value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) Flux binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, exchange); } @@ -283,7 +329,23 @@ default Mono> testEndpointParameters(@ApiParam(value = "Non value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, exchange); } @@ -309,7 +371,19 @@ default Mono> testEnumParameters(@ApiParam(value = "Header method = RequestMethod.DELETE, value = "/fake" ) - default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, exchange); } @@ -330,7 +404,9 @@ default Mono> testGroupParameters(@NotNull @ApiParam(value value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default Mono> testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Mono> param, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Mono> param, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testInlineAdditionalProperties(param, exchange); } @@ -352,7 +428,11 @@ default Mono> testInlineAdditionalProperties(@ApiParam(valu value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testJsonFormData(param, param2, exchange); } @@ -377,7 +457,17 @@ default Mono> testJsonFormData(@ApiParam(value = "field1", method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, exchange); } @@ -405,7 +495,13 @@ default Mono> testQueryParameterCollectionFormat(@NotNull @ produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) Flux requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 6c694d4115c7..466dd7f3feae 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,9 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default Mono> testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testClassname(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java index 92bef3255ba2..52f3bb7442ec 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,9 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().addPet(body, exchange); } @@ -82,7 +84,11 @@ default Mono> addPet(@ApiParam(value = "Pet object that nee method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default Mono> deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().deletePet(petId, apiKey, exchange); } @@ -111,7 +117,9 @@ default Mono> deletePet(@ApiParam(value = "Pet id to delete value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByStatus(status, exchange); } @@ -141,7 +149,9 @@ default Mono>> findPetsByStatus(@NotNull @ApiParam(valu value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().findPetsByTags(tags, exchange); } @@ -172,7 +182,9 @@ default Mono>> findPetsByTags(@NotNull @ApiParam(value value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default Mono> getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().getPetById(petId, exchange); } @@ -206,7 +218,9 @@ default Mono> getPetById(@ApiParam(value = "ID of pet to ret value = "/pet", consumes = { "application/json", "application/xml" } ) - default Mono> updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePet(body, exchange); } @@ -233,7 +247,13 @@ default Mono> updatePet(@ApiParam(value = "Pet object that value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default Mono> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().updatePetWithForm(petId, name, status, exchange); } @@ -261,7 +281,13 @@ default Mono> updatePetWithForm(@ApiParam(value = "ID of pe produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default Mono> uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) Flux file, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().uploadFile(petId, additionalMetadata, file, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java index f641d739cf27..449d84591cbe 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default StoreApiDelegate getDelegate() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default Mono> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteOrder(orderId, exchange); } @@ -101,7 +103,9 @@ default Mono>> getInventory(@springfox.docum value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().getOrderById(orderId, exchange); } @@ -125,7 +129,9 @@ default Mono> getOrderById(@Min(1L) @Max(5L) @ApiParam(val value = "/store/order", produces = { "application/xml", "application/json" } ) - default Mono> placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().placeOrder(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java index 4b5b51d33df1..7005cea3e09c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default Mono> createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUser(body, exchange); } @@ -66,7 +68,9 @@ default Mono> createUser(@ApiParam(value = "Created user ob method = RequestMethod.POST, value = "/user/createWithArray" ) - default Mono> createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody Flux body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody Flux body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithArrayInput(body, exchange); } @@ -86,7 +90,9 @@ default Mono> createUsersWithArrayInput(@ApiParam(value = " method = RequestMethod.POST, value = "/user/createWithList" ) - default Mono> createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody Flux body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody Flux body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().createUsersWithListInput(body, exchange); } @@ -110,7 +116,9 @@ default Mono> createUsersWithListInput(@ApiParam(value = "L method = RequestMethod.DELETE, value = "/user/{username}" ) - default Mono> deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().deleteUser(username, exchange); } @@ -137,7 +145,9 @@ default Mono> deleteUser(@ApiParam(value = "The name that n value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default Mono> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().getUserByName(username, exchange); } @@ -162,7 +172,11 @@ default Mono> getUserByName(@ApiParam(value = "The name tha value = "/user/login", produces = { "application/xml", "application/json" } ) - default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().loginUser(username, password, exchange); } @@ -206,7 +220,11 @@ default Mono> logoutUser(@springfox.documentation.annotatio method = RequestMethod.PUT, value = "/user/{username}" ) - default Mono> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { + default Mono> updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody Mono body, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().updateUser(username, body, exchange); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0e00ef82101a..a3b6622bdf8e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -39,6 +39,8 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index adac081073b1..30d4f1c90e32 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -38,7 +38,9 @@ public AnotherFakeApiController(@org.springframework.beans.factory.annotation.Au * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return delegate.call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 36cdea9be1a1..37a165e5e5f5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -47,7 +47,9 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -67,7 +69,9 @@ public interface FakeApi { value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -87,7 +91,9 @@ public interface FakeApi { value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -107,7 +113,9 @@ public interface FakeApi { value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -127,7 +135,9 @@ public interface FakeApi { value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -147,7 +157,9 @@ public interface FakeApi { value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -167,7 +179,11 @@ public interface FakeApi { value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body); /** @@ -188,7 +204,9 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); + ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); /** @@ -227,7 +245,35 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -257,7 +303,23 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -281,7 +343,19 @@ public interface FakeApi { method = RequestMethod.DELETE, value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +); /** @@ -300,7 +374,9 @@ public interface FakeApi { value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param); /** @@ -320,7 +396,11 @@ public interface FakeApi { value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -343,7 +423,17 @@ public interface FakeApi { method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +); /** @@ -369,6 +459,12 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 4f740b3706f3..e714970497e1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -47,7 +47,9 @@ public FakeApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return delegate.createXmlItem(xmlItem); } @@ -59,7 +61,9 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return delegate.fakeOuterBooleanSerialize(body); } @@ -71,7 +75,9 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return delegate.fakeOuterCompositeSerialize(body); } @@ -83,7 +89,9 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return delegate.fakeOuterNumberSerialize(body); } @@ -95,7 +103,9 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return delegate.fakeOuterStringSerialize(body); } @@ -107,7 +117,9 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return delegate.testBodyWithFileSchema(body); } @@ -119,7 +131,11 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return delegate.testBodyWithQueryParams(query, body); } @@ -131,7 +147,9 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return delegate.testClientModel(body); } @@ -157,7 +175,35 @@ public ResponseEntity testClientModel(@ApiParam(value = "client model", * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return delegate.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -177,7 +223,23 @@ public ResponseEntity testEndpointParameters(@ApiParam(value = "None", req * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -194,7 +256,19 @@ public ResponseEntity testEnumParameters(@ApiParam(value = "Header paramet * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -205,7 +279,9 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return delegate.testInlineAdditionalProperties(param); } @@ -217,7 +293,11 @@ public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "re * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return delegate.testJsonFormData(param, param2); } @@ -233,7 +313,17 @@ public ResponseEntity testJsonFormData(@ApiParam(value = "field1", require * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -246,7 +336,13 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return delegate.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 9b39401fe1a4..bd2221e52764 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -42,6 +42,8 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); + ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 0b363c4f3d33..027fe24ac123 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -38,7 +38,9 @@ public FakeClassnameTestApiController(@org.springframework.beans.factory.annotat * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + public ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return delegate.testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java index 3a1361380316..ccfd00793a5a 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -45,7 +45,9 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -71,7 +73,11 @@ public interface PetApi { method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +); /** @@ -98,7 +104,9 @@ public interface PetApi { value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -126,7 +134,9 @@ public interface PetApi { value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -155,7 +165,9 @@ public interface PetApi { value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +); /** @@ -187,7 +199,9 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -212,7 +226,13 @@ public interface PetApi { value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -238,6 +258,12 @@ public interface PetApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java index 96fe2803383b..79e735b977f3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -39,7 +39,9 @@ public PetApiController(@org.springframework.beans.factory.annotation.Autowired( * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + public ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return delegate.addPet(body); } @@ -52,7 +54,11 @@ public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to b * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return delegate.deletePet(petId, apiKey); } @@ -65,7 +71,9 @@ public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", requ * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @springfox.documentation.annotations.ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +, @springfox.documentation.annotations.ApiIgnore final Pageable pageable) { return delegate.findPetsByStatus(status, pageable); } @@ -79,7 +87,9 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @springfox.documentation.annotations.ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +, @springfox.documentation.annotations.ApiIgnore final Pageable pageable) { return delegate.findPetsByTags(tags, pageable); } @@ -93,7 +103,9 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { return delegate.getPetById(petId); } @@ -107,7 +119,9 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", r * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return delegate.updatePet(body); } @@ -120,7 +134,13 @@ public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs t * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return delegate.updatePetWithForm(petId, name, status); } @@ -133,7 +153,13 @@ public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return delegate.uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java index 8ace2d21dfc4..6238e1486c97 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -41,7 +41,9 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +); /** @@ -89,7 +91,9 @@ public interface StoreApi { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +); /** @@ -111,6 +115,8 @@ public interface StoreApi { value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index db0bd68f0180..76d07f1fc783 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -40,7 +40,9 @@ public StoreApiController(@org.springframework.beans.factory.annotation.Autowire * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return delegate.deleteOrder(orderId); } @@ -65,7 +67,9 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { return delegate.getOrderById(orderId); } @@ -77,7 +81,9 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return delegate.placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java index 01a7d1b39fad..b1c1398c13ff 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -38,7 +38,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); + ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -56,7 +58,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -74,7 +78,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -96,7 +102,9 @@ public interface UserApi { method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +); /** @@ -121,7 +129,9 @@ public interface UserApi { value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +); /** @@ -144,7 +154,11 @@ public interface UserApi { value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +); /** @@ -184,6 +198,10 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java index 7703461e0db2..da136ce2f801 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -39,7 +39,9 @@ public UserApiController(@org.springframework.beans.factory.annotation.Autowired * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + public ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return delegate.createUser(body); } @@ -50,7 +52,9 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object", * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return delegate.createUsersWithArrayInput(body); } @@ -61,7 +65,9 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return delegate.createUsersWithListInput(body); } @@ -74,7 +80,9 @@ public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return delegate.deleteUser(username); } @@ -87,7 +95,9 @@ public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { return delegate.getUserByName(username); } @@ -100,7 +110,11 @@ public ResponseEntity getUserByName(@ApiParam(value = "The name that needs * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return delegate.loginUser(username, password); } @@ -124,7 +138,11 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return delegate.updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java index c965be6ec797..e82766bb0d3b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -43,7 +43,9 @@ default AnotherFakeApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().call123testSpecialTags(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index dcedca5cb3ab..d06013ea1763 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,9 @@ default FakeApiDelegate getDelegate() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return getDelegate().createXmlItem(xmlItem); } @@ -73,7 +75,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -95,7 +99,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -117,7 +123,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -139,7 +147,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return getDelegate().fakeOuterStringSerialize(body); } @@ -161,7 +171,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return getDelegate().testBodyWithFileSchema(body); } @@ -183,7 +195,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return getDelegate().testBodyWithQueryParams(query, body); } @@ -206,7 +222,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClientModel(body); } @@ -247,7 +265,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -279,7 +325,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -305,7 +367,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -326,7 +400,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return getDelegate().testInlineAdditionalProperties(param); } @@ -348,7 +424,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return getDelegate().testJsonFormData(param, param2); } @@ -373,7 +453,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } @@ -401,7 +491,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 232f7156941f..d3ad75ed3ccf 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -46,7 +46,9 @@ default FakeClassnameTestApiDelegate getDelegate() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { return getDelegate().testClassname(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java index dabdafac7f49..f7f14f6ae1cc 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java @@ -49,7 +49,9 @@ default PetApiDelegate getDelegate() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().addPet(body); } @@ -77,7 +79,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return getDelegate().deletePet(petId, apiKey); } @@ -106,7 +112,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { return getDelegate().findPetsByStatus(status, pageable); } @@ -136,7 +144,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { return getDelegate().findPetsByTags(tags, pageable); } @@ -167,7 +177,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { return getDelegate().getPetById(petId); } @@ -201,7 +213,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return getDelegate().updatePet(body); } @@ -228,7 +242,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return getDelegate().updatePetWithForm(petId, name, status); } @@ -256,7 +276,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { return getDelegate().uploadFile(petId, additionalMetadata, file); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java index aae41fd2fd50..dd3ae9db1c1d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java @@ -45,7 +45,9 @@ default StoreApiDelegate getDelegate() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return getDelegate().deleteOrder(orderId); } @@ -97,7 +99,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { return getDelegate().getOrderById(orderId); } @@ -121,7 +125,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { return getDelegate().placeOrder(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java index 2836b8971f42..3834fa3104b1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,9 @@ default UserApiDelegate getDelegate() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return getDelegate().createUser(body); } @@ -62,7 +64,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithArrayInput(body); } @@ -82,7 +86,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return getDelegate().createUsersWithListInput(body); } @@ -106,7 +112,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return getDelegate().deleteUser(username); } @@ -133,7 +141,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { return getDelegate().getUserByName(username); } @@ -158,7 +168,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return getDelegate().loginUser(username, password); } @@ -202,7 +216,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return getDelegate().updateUser(username, body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 0e00ef82101a..a3b6622bdf8e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -39,6 +39,8 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); + ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 7e7db5c514d2..ec32cf448bff 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -40,7 +40,9 @@ public AnotherFakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see AnotherFakeApi#call123testSpecialTags */ - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + public ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 36cdea9be1a1..37a165e5e5f5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -47,7 +47,9 @@ public interface FakeApi { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem); + ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem); /** @@ -67,7 +69,9 @@ public interface FakeApi { value = "/fake/outer/boolean", produces = { "*/*" } ) - ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); + ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body); /** @@ -87,7 +91,9 @@ public interface FakeApi { value = "/fake/outer/composite", produces = { "*/*" } ) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); + ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body); /** @@ -107,7 +113,9 @@ public interface FakeApi { value = "/fake/outer/number", produces = { "*/*" } ) - ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); + ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body); /** @@ -127,7 +135,9 @@ public interface FakeApi { value = "/fake/outer/string", produces = { "*/*" } ) - ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); + ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body); /** @@ -147,7 +157,9 @@ public interface FakeApi { value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body); + ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body); /** @@ -167,7 +179,11 @@ public interface FakeApi { value = "/fake/body-with-query-params", consumes = { "application/json" } ) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body); /** @@ -188,7 +204,9 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); + ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); /** @@ -227,7 +245,35 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); + ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback); /** @@ -257,7 +303,23 @@ public interface FakeApi { value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); + ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString); /** @@ -281,7 +343,19 @@ public interface FakeApi { method = RequestMethod.DELETE, value = "/fake" ) - ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group); + ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +); /** @@ -300,7 +374,9 @@ public interface FakeApi { value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param); + ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param); /** @@ -320,7 +396,11 @@ public interface FakeApi { value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2); + ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2); /** @@ -343,7 +423,17 @@ public interface FakeApi { method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); + ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +); /** @@ -369,6 +459,12 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); + ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 448584fc4a2a..34b4872f1857 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -49,7 +49,9 @@ public FakeApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeApi#createXmlItem */ - public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + public ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -62,7 +64,9 @@ public ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", requ * @return Output boolean (status code 200) * @see FakeApi#fakeOuterBooleanSerialize */ - public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + public ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -75,7 +79,9 @@ public ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inpu * @return Output composite (status code 200) * @see FakeApi#fakeOuterCompositeSerialize */ - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + public ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { String exampleString = "{ \"my_string\" : \"my_string\", \"my_number\" : 0.8008281904610115, \"my_boolean\" : true }"; @@ -95,7 +101,9 @@ public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(valu * @return Output number (status code 200) * @see FakeApi#fakeOuterNumberSerialize */ - public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + public ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -108,7 +116,9 @@ public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "In * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + public ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -121,7 +131,9 @@ public ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input * @return Success (status code 200) * @see FakeApi#testBodyWithFileSchema */ - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + public ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -134,7 +146,11 @@ public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", require * @return Success (status code 200) * @see FakeApi#testBodyWithQueryParams */ - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -147,7 +163,9 @@ public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = " * @return successful operation (status code 200) * @see FakeApi#testClientModel */ - public ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + public ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; @@ -181,7 +199,35 @@ public ResponseEntity testClientModel(@ApiParam(value = "client model", * or User not found (status code 404) * @see FakeApi#testEndpointParameters */ - public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + public ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +248,23 @@ public ResponseEntity testEndpointParameters(@ApiParam(value = "None", req * or Not found (status code 404) * @see FakeApi#testEnumParameters */ - public ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + public ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -220,7 +282,19 @@ public ResponseEntity testEnumParameters(@ApiParam(value = "Header paramet * @return Someting wrong (status code 400) * @see FakeApi#testGroupParameters */ - public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -232,7 +306,9 @@ public ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Requ * @return successful operation (status code 200) * @see FakeApi#testInlineAdditionalProperties */ - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + public ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -245,7 +321,11 @@ public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "re * @return successful operation (status code 200) * @see FakeApi#testJsonFormData */ - public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + public ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -262,7 +342,17 @@ public ResponseEntity testJsonFormData(@ApiParam(value = "field1", require * @return Success (status code 200) * @see FakeApi#testQueryParameterCollectionFormat */ - public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -276,7 +366,13 @@ public ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPara * @return successful operation (status code 200) * @see FakeApi#uploadFileWithRequiredFile */ - public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + public ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 9b39401fe1a4..bd2221e52764 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -42,6 +42,8 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" } ) - ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); + ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 4b7f7b72e8aa..80e92bdeaf15 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -40,7 +40,9 @@ public FakeClassnameTestApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see FakeClassnameTestApi#testClassname */ - public ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + public ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"client\" : \"client\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java index 3a1361380316..ccfd00793a5a 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -45,7 +45,9 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -71,7 +73,11 @@ public interface PetApi { method = RequestMethod.DELETE, value = "/pet/{petId}" ) - ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey); + ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +); /** @@ -98,7 +104,9 @@ public interface PetApi { value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -126,7 +134,9 @@ public interface PetApi { value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); + ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable); /** @@ -155,7 +165,9 @@ public interface PetApi { value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId); + ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +); /** @@ -187,7 +199,9 @@ public interface PetApi { value = "/pet", consumes = { "application/json", "application/xml" } ) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); + ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body); /** @@ -212,7 +226,13 @@ public interface PetApi { value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); + ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status); /** @@ -238,6 +258,12 @@ public interface PetApi { produces = { "application/json" }, consumes = { "multipart/form-data" } ) - ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); + ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java index bb7a39e81bd0..27bc49a0f61e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApiController.java @@ -41,7 +41,9 @@ public PetApiController(NativeWebRequest request) { * or Invalid input (status code 405) * @see PetApi#addPet */ - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + public ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -55,7 +57,11 @@ public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to b * or Invalid pet value (status code 400) * @see PetApi#deletePet */ - public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -69,7 +75,9 @@ public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", requ * or Invalid status value (status code 400) * @see PetApi#findPetsByStatus */ - public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @springfox.documentation.annotations.ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +, @springfox.documentation.annotations.ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -96,7 +104,9 @@ public ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "St * @deprecated * @see PetApi#findPetsByTags */ - public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @springfox.documentation.annotations.ApiIgnore final Pageable pageable) { + public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +, @springfox.documentation.annotations.ApiIgnore final Pageable pageable) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -123,7 +133,9 @@ public ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags * or Pet not found (status code 404) * @see PetApi#getPetById */ - public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\" }"; @@ -150,7 +162,9 @@ public ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", r * or Validation exception (status code 405) * @see PetApi#updatePet */ - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + public ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -164,7 +178,13 @@ public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs t * @return Invalid input (status code 405) * @see PetApi#updatePetWithForm */ - public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -178,7 +198,13 @@ public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that * @return successful operation (status code 200) * @see PetApi#uploadFile */ - public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + public ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java index 8ace2d21dfc4..6238e1486c97 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -41,7 +41,9 @@ public interface StoreApi { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId); + ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +); /** @@ -89,7 +91,9 @@ public interface StoreApi { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId); + ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +); /** @@ -111,6 +115,8 @@ public interface StoreApi { value = "/store/order", produces = { "application/xml", "application/json" } ) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); + ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java index 3b1ec152fe18..392213709825 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApiController.java @@ -42,7 +42,9 @@ public StoreApiController(NativeWebRequest request) { * or Order not found (status code 404) * @see StoreApi#deleteOrder */ - public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + public ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -69,7 +71,9 @@ public ResponseEntity> getInventory() { * or Order not found (status code 404) * @see StoreApi#getOrderById */ - public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; @@ -94,7 +98,9 @@ public ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "I * or Invalid Order (status code 400) * @see StoreApi#placeOrder */ - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + public ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\" }"; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java index 01a7d1b39fad..b1c1398c13ff 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -38,7 +38,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user" ) - ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); + ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body); /** @@ -56,7 +58,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithArray" ) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -74,7 +78,9 @@ public interface UserApi { method = RequestMethod.POST, value = "/user/createWithList" ) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); + ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body); /** @@ -96,7 +102,9 @@ public interface UserApi { method = RequestMethod.DELETE, value = "/user/{username}" ) - ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username); + ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +); /** @@ -121,7 +129,9 @@ public interface UserApi { value = "/user/{username}", produces = { "application/xml", "application/json" } ) - ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username); + ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +); /** @@ -144,7 +154,11 @@ public interface UserApi { value = "/user/login", produces = { "application/xml", "application/json" } ) - ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password); + ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +); /** @@ -184,6 +198,10 @@ public interface UserApi { method = RequestMethod.PUT, value = "/user/{username}" ) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java index 4cb76612c3e8..a749387b89f1 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApiController.java @@ -41,7 +41,9 @@ public UserApiController(NativeWebRequest request) { * @return successful operation (status code 200) * @see UserApi#createUser */ - public ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + public ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -53,7 +55,9 @@ public ResponseEntity createUser(@ApiParam(value = "Created user object", * @return successful operation (status code 200) * @see UserApi#createUsersWithArrayInput */ - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -65,7 +69,9 @@ public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of * @return successful operation (status code 200) * @see UserApi#createUsersWithListInput */ - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + public ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -79,7 +85,9 @@ public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of * or User not found (status code 404) * @see UserApi#deleteUser */ - public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -93,7 +101,9 @@ public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to * or User not found (status code 404) * @see UserApi#getUserByName */ - public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + public ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }"; @@ -119,7 +129,11 @@ public ResponseEntity getUserByName(@ApiParam(value = "The name that needs * or Invalid username/password supplied (status code 400) * @see UserApi#loginUser */ - public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + public ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,7 +159,11 @@ public ResponseEntity logoutUser() { * or User not found (status code 404) * @see UserApi#updateUser */ - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1605c39b917a..dd22dd3b90b0 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index 5f85cf9dc454..ec7adbe66310 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +80,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +105,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +139,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +164,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +189,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +214,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +242,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,7 +295,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +356,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,7 +399,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,7 +433,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -382,7 +458,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -408,7 +488,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -437,7 +527,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index be7512ba6d60..d8865b8e2f64 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 7ca2b0f26f2e..d805b96deecf 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -53,7 +53,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -82,7 +84,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -112,7 +118,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -157,7 +165,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags + +, @springfox.documentation.annotations.ApiIgnore final org.springframework.data.domain.Pageable pageable) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -203,7 +213,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tag value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -252,7 +264,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -280,7 +294,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -309,7 +329,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index dff51097cc07..db448a312289 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,7 +105,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -142,7 +146,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index d7a5431561a9..7507229606c7 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +69,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +92,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +149,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,7 +191,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +241,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1605c39b917a..dd22dd3b90b0 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index 171377cd7ee6..ed4f67a71c8d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +80,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +105,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +139,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +164,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +189,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +214,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +242,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,7 +295,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +356,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) Optional> enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) Optional enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") Optional enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) Optional> enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) Optional enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") Optional enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,7 +399,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Optional booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Optional stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Optional booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Optional int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,7 +433,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -382,7 +458,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -408,7 +488,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -437,7 +527,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index be7512ba6d60..d8865b8e2f64 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java index 9937c7fa36ed..1baccadb6ddf 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,7 +85,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) Optional apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) Optional apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -158,7 +166,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -204,7 +214,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -253,7 +265,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -281,7 +295,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +330,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java index dff51097cc07..db448a312289 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,7 +105,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -142,7 +146,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java index d7a5431561a9..7507229606c7 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +69,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +92,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +149,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,7 +191,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +241,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java index 2f614b6583f4..bd674984d027 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java @@ -51,7 +51,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index c3cc46124bef..84229d09dec8 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -59,7 +59,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,7 +85,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -107,7 +111,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -140,7 +146,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -164,7 +172,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -188,7 +198,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -212,7 +224,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -237,7 +253,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -289,7 +307,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -323,7 +369,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -351,7 +413,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -374,7 +448,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -398,7 +474,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -425,7 +505,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -455,7 +545,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java index 9e5ac27b5828..480f01374979 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java @@ -54,7 +54,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java index 09ad63ee72d2..a501a076fe51 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java @@ -58,7 +58,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +90,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -119,7 +125,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -165,7 +173,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -212,7 +222,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -262,7 +274,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -291,7 +305,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -321,7 +341,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java index 8b5963afb015..2137e0655afd 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java @@ -53,7 +53,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -109,7 +111,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -149,7 +153,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java index 4b9d431e829d..eb74819d37b1 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -72,7 +74,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -94,7 +98,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -120,7 +126,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -149,7 +157,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -190,7 +200,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -238,7 +252,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java index 1605c39b917a..dd22dd3b90b0 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -47,7 +47,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity call123testSpecialTags( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 143b87377047..671cce0c9097 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -55,7 +55,9 @@ default Optional getRequest() { value = "/fake/create_xml_item", consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" } ) - default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { + default ResponseEntity createXmlItem( + +@ApiParam(value = "XmlItem Body", required = true ) @Valid @RequestBody XmlItem xmlItem) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -78,7 +80,9 @@ default ResponseEntity createXmlItem(@ApiParam(value = "XmlItem Body", req value = "/fake/outer/boolean", produces = { "*/*" } ) - default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { + default ResponseEntity fakeOuterBooleanSerialize( + +@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -101,7 +105,9 @@ default ResponseEntity fakeOuterBooleanSerialize(@ApiParam(value = "Inp value = "/fake/outer/composite", produces = { "*/*" } ) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { + default ResponseEntity fakeOuterCompositeSerialize( + +@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -133,7 +139,9 @@ default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(val value = "/fake/outer/number", produces = { "*/*" } ) - default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { + default ResponseEntity fakeOuterNumberSerialize( + +@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -156,7 +164,9 @@ default ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "I value = "/fake/outer/string", produces = { "*/*" } ) - default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { + default ResponseEntity fakeOuterStringSerialize( + +@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -179,7 +189,9 @@ default ResponseEntity fakeOuterStringSerialize(@ApiParam(value = "Input value = "/fake/body-with-file-schema", consumes = { "application/json" } ) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { + default ResponseEntity testBodyWithFileSchema( + +@ApiParam(value = "", required = true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -202,7 +214,11 @@ default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "", requir value = "/fake/body-with-query-params", consumes = { "application/json" } ) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query + +, + +@ApiParam(value = "", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -226,7 +242,9 @@ default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClientModel(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClientModel( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -277,7 +295,35 @@ default ResponseEntity testClientModel(@ApiParam(value = "client model", value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEndpointParameters(@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float,@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string,@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary,@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date,@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime,@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password,@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { + default ResponseEntity testEndpointParameters( + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter, + +@ApiParam(value = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte, + +@ApiParam(value = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32, + +@ApiParam(value = "None") @Valid @RequestPart(value = "int64", required = false) Long int64, + +@ApiParam(value = "None") @Valid @RequestPart(value = "float", required = false) Float _float, + +@ApiParam(value = "None") @Valid @RequestPart(value = "string", required = false) String string, + +@ApiParam(value = "None") @Valid @RequestPart(value = "binary", required = false) MultipartFile binary, + +@ApiParam(value = "None") @Valid @RequestPart(value = "date", required = false) LocalDate date, + +@ApiParam(value = "None") @Valid @RequestPart(value = "dateTime", required = false) OffsetDateTime dateTime, + +@ApiParam(value = "None") @Valid @RequestPart(value = "password", required = false) String password, + +@ApiParam(value = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +356,23 @@ default ResponseEntity testEndpointParameters(@ApiParam(value = "None", re value = "/fake", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { + default ResponseEntity testEnumParameters( +@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray +, +@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString +,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray + +,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger + +,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble + +, + +@ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, + +@ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -337,7 +399,19 @@ default ResponseEntity testEnumParameters(@ApiParam(value = "Header parame method = RequestMethod.DELETE, value = "/fake" ) - default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group) { + default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup + +, +@ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup +,@NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group + +,@ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup + +, +@ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup +,@ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -359,7 +433,9 @@ default ResponseEntity testGroupParameters(@NotNull @ApiParam(value = "Req value = "/fake/inline-additionalProperties", consumes = { "application/json" } ) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { + default ResponseEntity testInlineAdditionalProperties( + +@ApiParam(value = "request body", required = true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -382,7 +458,11 @@ default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "r value = "/fake/jsonFormData", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity testJsonFormData(@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { + default ResponseEntity testJsonFormData( + +@ApiParam(value = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param, + +@ApiParam(value = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -408,7 +488,17 @@ default ResponseEntity testJsonFormData(@ApiParam(value = "field1", requir method = RequestMethod.PUT, value = "/fake/test-query-parameters" ) - default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { + default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url + +,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -437,7 +527,13 @@ default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiPar produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { + default ResponseEntity uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "requiredFile", required = true) MultipartFile requiredFile, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index be7512ba6d60..d8865b8e2f64 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -50,7 +50,9 @@ default Optional getRequest() { produces = { "application/json" }, consumes = { "application/json" } ) - default ResponseEntity testClassname(@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { + default ResponseEntity testClassname( + +@ApiParam(value = "client model", required = true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java index 05cb0990dfe1..bbb099e4d5d8 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java @@ -54,7 +54,9 @@ default Optional getRequest() { value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity addPet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -83,7 +85,11 @@ default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to method = RequestMethod.DELETE, value = "/pet/{petId}" ) - default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey) { + default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId + +, +@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity deletePet(@ApiParam(value = "Pet id to delete", req value = "/pet/findByStatus", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status) { + default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List status + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -158,7 +166,9 @@ default ResponseEntity> findPetsByStatus(@NotNull @ApiParam(value = "S value = "/pet/findByTags", produces = { "application/xml", "application/json" } ) - default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags) { + default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set tags + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -204,7 +214,9 @@ default ResponseEntity> findPetsByTags(@NotNull @ApiParam(value = "Tags value = "/pet/{petId}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId) { + default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -253,7 +265,9 @@ default ResponseEntity getPetById(@ApiParam(value = "ID of pet to return", value = "/pet", consumes = { "application/json", "application/xml" } ) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { + default ResponseEntity updatePet( + +@ApiParam(value = "Pet object that needs to be added to the store", required = true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -281,7 +295,13 @@ default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs value = "/pet/{petId}", consumes = { "application/x-www-form-urlencoded" } ) - default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { + default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name, + +@ApiParam(value = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -310,7 +330,13 @@ default ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that produces = { "application/json" }, consumes = { "multipart/form-data" } ) - default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { + default ResponseEntity uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId + +, + +@ApiParam(value = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata, + +@ApiParam(value = "file to upload") @Valid @RequestPart(value = "file", required = false) MultipartFile file) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java index dff51097cc07..db448a312289 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java @@ -49,7 +49,9 @@ default Optional getRequest() { method = RequestMethod.DELETE, value = "/store/order/{order_id}" ) - default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId) { + default ResponseEntity deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -103,7 +105,9 @@ default ResponseEntity> getInventory() { value = "/store/order/{order_id}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId) { + default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -142,7 +146,9 @@ default ResponseEntity getOrderById(@Min(1L) @Max(5L) @ApiParam(value = " value = "/store/order", produces = { "application/xml", "application/json" } ) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { + default ResponseEntity placeOrder( + +@ApiParam(value = "order placed for purchasing the pet", required = true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java index d7a5431561a9..7507229606c7 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java @@ -46,7 +46,9 @@ default Optional getRequest() { method = RequestMethod.POST, value = "/user" ) - default ResponseEntity createUser(@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity createUser( + +@ApiParam(value = "Created user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -67,7 +69,9 @@ default ResponseEntity createUser(@ApiParam(value = "Created user object", method = RequestMethod.POST, value = "/user/createWithArray" ) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithArrayInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +92,9 @@ default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List o method = RequestMethod.POST, value = "/user/createWithList" ) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { + default ResponseEntity createUsersWithListInput( + +@ApiParam(value = "List of user object", required = true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -113,7 +119,9 @@ default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of method = RequestMethod.DELETE, value = "/user/{username}" ) - default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username) { + default ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +149,9 @@ default ResponseEntity deleteUser(@ApiParam(value = "The name that needs t value = "/user/{username}", produces = { "application/xml", "application/json" } ) - default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username) { + default ResponseEntity getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username + +) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -181,7 +191,11 @@ default ResponseEntity getUserByName(@ApiParam(value = "The name that need value = "/user/login", produces = { "application/xml", "application/json" } ) - default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) { + default ResponseEntity loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username + +,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password + +) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -227,7 +241,11 @@ default ResponseEntity logoutUser() { method = RequestMethod.PUT, value = "/user/{username}" ) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username + +, + +@ApiParam(value = "Updated user object", required = true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } From 2275bfa98128781e013ddbf52ddd0d4cd8a0097c Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Fri, 22 Oct 2021 09:15:50 -0400 Subject: [PATCH 19/21] Update maven `pom.xml` mustache to use OAS3 annotations --- .../JavaSpring/libraries/spring-boot/pom.mustache | 9 +++++++++ .../JavaSpring/libraries/spring-cloud/pom.mustache | 9 +++++++++ .../JavaSpring/libraries/spring-mvc/pom.mustache | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache index 58b6e67d34cf..2f75d1c0f63b 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache @@ -114,11 +114,20 @@ swagger-ui 3.14.2 + {{#oas3}} + + io.swagger.core.v3 + swagger-annotations + 2.1.2 + + {{/oas3}} + {{^oas3}} io.swagger swagger-annotations 1.5.14 + {{/oas3}} com.google.code.findbugs diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom.mustache index 80453821f545..1636e5918366 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom.mustache @@ -44,6 +44,14 @@ {{/parentOverridden}} + {{#oas3}} + + io.swagger.core.v3 + swagger-annotations + 2.1.2 + + {{/oas3}} + {{^oas3}} io.swagger swagger-annotations @@ -51,6 +59,7 @@ ${swagger-core-version} {{/parentOverridden}} + {{/oas3}} com.google.code.findbugs diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache index 7179f1abe40c..909113d70139 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache @@ -183,11 +183,20 @@ swagger-ui 3.14.2 + {{#oas3}} + + io.swagger.core.v3 + swagger-annotations + 2.1.2 + + {{/oas3}} + {{^oas3}} io.swagger swagger-annotations 1.5.14 + {{/oas3}} com.google.code.findbugs From 59e9326ba807b4bbc9b5012af72548d54866087f Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Sun, 24 Oct 2021 19:01:09 -0400 Subject: [PATCH 20/21] FIx typo in variable name --- docs/generators/spring.md | 2 +- .../java/org/openapitools/codegen/languages/SpringCodegen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/generators/spring.md b/docs/generators/spring.md index d7b2753131ec..8f834fdf27dd 100644 --- a/docs/generators/spring.md +++ b/docs/generators/spring.md @@ -65,12 +65,12 @@ These options may be applied as additional-properties (cli) or configOptions (pl |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| |sourceFolder|source folder for generated code| |src/main/java| -|springController|Annotate the generated API as a Spring Controller| |false| |swaggerDocketConfig|Generate Spring OpenAPI Docket configuration class.| |false| |title|server title name or client service name| |OpenAPI Spring| |unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).| |false| |useBeanValidation|Use BeanValidation API annotations| |true| |useOptional|Use Optional container for optional parameters| |false| +|useSpringController|Annotate the generated API as a Spring Controller| |false| |useTags|use tags for creating interface and controller classnames| |false| |virtualService|Generates the virtual service. For more details refer - https://github.com/virtualansoftware/virtualan/wiki| |false| |withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false| diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index e49c5bf8e400..02f88e440a06 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -90,7 +90,7 @@ public class SpringCodegen extends AbstractJavaCodegen public static final String OPENAPI_DOCKET_CONFIG = "swaggerDocketConfig"; public static final String API_FIRST = "apiFirst"; public static final String OAS3 = "oas3"; - public static final String SPRING_CONTROLLER = "springController"; + public static final String SPRING_CONTROLLER = "useSpringController"; public static final String HATEOAS = "hateoas"; public static final String RETURN_SUCCESS_CODE = "returnSuccessCode"; public static final String UNHANDLED_EXCEPTION_HANDLING = "unhandledException"; From f56a96a52d48caee36a1b8145e527102551b2936 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Tue, 26 Oct 2021 09:46:08 -0400 Subject: [PATCH 21/21] Write back `useSpringfox` property --- .../org/openapitools/codegen/languages/SpringCodegen.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index 02f88e440a06..df5de0c1c90a 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -512,9 +512,14 @@ public void processOpts() { additionalProperties.put(RESPONSE_WRAPPER, "Callable"); } + // Springfox cannot be used with oas3 or apiFirst or reactive. So, write the property back after determining + // whether it should be enabled or not. + boolean useSpringFox = false; if (!apiFirst && !reactive && !oas3) { + useSpringFox = true; additionalProperties.put("useSpringfox", true); } + writePropertyBack("useSpringfox", useSpringFox); // Some well-known Spring or Spring-Cloud response wrappers if (isNotEmpty(responseWrapper)) {